Skip to content

sergei-maertens/regex-it

Repository files navigation

Regex-IT website

Website for https://regex-it.nl.

Build Status codecov.io Coverage Status Requirements Status

Getting started

The python dependencies for development are easily installed with:

pip install -r requirements/dev.txt

Create the database, default settings are in regex.conf.settings.dev. Postgres 9.4 is used by default.

For the front-end tools, nodejs and npm are required, install them with your favourite package manager.

Next, install the global build tools if not present yet:

npm install grunt-cli -g

And install the project dev dependencies:

npm install

To watch the sass files and recompile sass to css on the fly, run:

grunt

You can now fire up the development server:

src/manage.py runserver --settings=regex.conf.settings.dev

Deployment

You need a python 2 virtualenvironment with ansible installed. It does not work (yet) on Py3.

cd deployment
ansible-playbook -i hosts deploy.yml -e "release_tag=<branch-or-tag> target=[staging|production]" --ask-vault-pass