You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Drew Larson 0b5092842f Stop tracking. 7 years ago
bikeshop_project hotfix: Spell unsubscribed correctly. 7 years ago
docker/nginx Bring back ssl. 7 years ago
requirements Add members to Mailchimp list with interests (#59) 7 years ago
.gitignore Stop tracking. 7 years ago
.travis.yml Limit branch builds to master. (#50) 7 years ago
Dockerfile Add member notes (#35) 7 years ago
Dockerfile-dev Rename docker files for automated build. 7 years ago
Dockerfile-webpack Add member notes (#35) 7 years ago
LICENSE Merge last couple of months of work (#45) 7 years ago
README.md Starting & Stopping Vagrant 8 years ago
docker-compose.dev.yml Add member notes (#35) 7 years ago
docker-compose.prod.yml Add member notes (#35) 7 years ago
docker-compose.yml Literally getting so close. 7 years ago

README.md

Quickstart

Maybe this isn't such a quick start, but it's the best I have right now. After the following steps are completed, you will have a working development version of the Trailer-Safeguard Django application connectable on bikeshop-dev.local:8000/.

  1. Make sure Virtualbox is installed and updated (https://www.virtualbox.org/)
  2. Make sure Vagrant is installed and updated (https://www.vagrantup.com/)
  3. Verify pip is installed which pip (eg. using http://brew.sh/ brew install pip)
  4. Verify ansible is installed which ansible (eg. using http://brew.sh/ brew install ansible)
    1. Verify bower is installed which ansible (eg. using http://brew.sh/ brew install bower)
  5. Clone source git clone AHHHHHH
  6. cd to root of repo & bower install
  7. ansible-galaxy install zenoamaro.postgresql -p provision/roles
  8. vagrant plugin install vagrant-hostsupdater
  9. vagrant up
  10. vagrant ssh
  11. cd /srv/bikeshop && . /opt/venv/bikeshop-development/bin/activate
  12. ./manage.py migrate
  13. ./manage.py loaddata core/migrations/initial_data.yaml && ./manage.py loaddata authentication/migrations/initial_data.yaml
  14. try to load http://bikeshop.local/
  15. may need to restart supervisor on vagrant machine service supervisor restart if receiving 502

Example of dumpdata command

./manage.py dumpdata --exclude=auth --exclude=contenttypes --exclude=incoming --format=yaml

Reset the Postgres DB

  1. vagrant ssh
  2. sudo -i -u postgres
  3. psql
  4. \c trailersafeguard_development

DROP SCHEMA public CASCADE; CREATE SCHEMA public; GRANT ALL ON SCHEMA public TO postgres; GRANT ALL ON SCHEMA public TO public; COMMENT ON SCHEMA public IS 'standard public schema';

6. Steps 11 and 12 from **Quickstart**.

### Starting & Stopping Application
1. cd to root of repo
2. `vagrant up`
3. try to load [http://bikeshop.local/](http://bikeshop.local/)
5. `vagrant halt`