https://github.com/ghostwords/nova
Blue Ridge Labs @ Robin Hood fellowship project
https://github.com/ghostwords/nova
Last synced: 3 months ago
JSON representation
Blue Ridge Labs @ Robin Hood fellowship project
- Host: GitHub
- URL: https://github.com/ghostwords/nova
- Owner: ghostwords
- License: mpl-2.0
- Created: 2015-08-12T16:56:03.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-08-18T13:35:14.000Z (almost 11 years ago)
- Last Synced: 2025-01-16T22:45:21.559Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://www.nova.jobs/
- Size: 1.31 MB
- Stars: 3
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nova.jobs
Django project in `django/`, Ansible provisioning and deployment stuff in `ansible/`. Switch to `django/` before working on the site. Don't switch to `ansible/` when provisioning/deploying though ...
## Development set up
1. Install dependencies from `django/requirements-dev.txt`. You probably want to use `pip` and `virtualenv`. Note this is a Python 3 project.
2. TODO Database/admin user setup.
## Working on the site
Run `python manage.py runserver` from the `django/` project directory.
## Working with translations
Whenever translations need to be updated:
1. Run `dj makemessages` (assuming bash alias from above) to regenerate locale files.
2. Start the dev server, log in as the admin user to admin UI.
3. Go to `localhost/rosetta` and start updating translations. Much better than editing po files by hand. No need to run `dj compilemessages` since Rosetta does that for you when you save.
## Deploying
List tags:
`ansible-playbook ansible/site.yaml --list-tags`
List "deploy" tasks:
`ansible-playbook ansible/site.yaml --tags deploy --list-tasks`
Deploy to staging server(s):
`ansible-playbook ansible/site.yaml -i ansible/staging --ask-become-pass --tags deploy`
Actually ... The same server is currently used for staging and production domains, but we vary the domain variable in the inventory.
## License
The source code is licensed under Mozilla Public License Version 2.0.
All assets (images/logos/branding) are property of Team Nova.