page-lab icon indicating copy to clipboard operation
page-lab copied to clipboard

automate Django setup

Open daviddahl opened this issue 6 years ago • 0 comments

We should write a script that completely automates the Django setup by:

  • [ ] checking for virtualenv and installing if need be
  • [ ] create a virtualenv in ~/.env-pagelab || <path>
  • [ ] install requirements.txt
  • [ ] prompt user for DJANGO_DB_NAME, DJANGO_DB_PASSWORD, etc
  • [ ] write config in settings_local.py
  • [ ] provide a start script that does source ~/.env-pagelab/bin/activate first
  • [ ] figure out how best to talk to postgresql
  • [ ] runs ./manage.py migrate
  • [ ] runs ./manage.py loaddata reports/fixtures/$NEW_FIXTURE_WITH_24_URLS_OR_SOMETHING.json
  • [ ] runs ./manage.py collectstatic
  • [ ] generate gunicorn start script for supervisorctl
  • [ ] generate 'httpd' config
  • [ ] create a docker image that knows how to consume all of these artifacts

daviddahl avatar Dec 05 '18 14:12 daviddahl