mirror of https://github.com/fspc/workstand.git
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
bb5d77b185
|
9 years ago | |
---|---|---|
bikeshop_project | 9 years ago | |
provision | 9 years ago | |
requirements | 9 years ago | |
.bowerrc | 9 years ago | |
.gitignore | 9 years ago | |
README.md | 9 years ago | |
Vagrantfile | 9 years ago | |
bower.json | 9 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/.
- Make sure Virtualbox is installed and updated
- Make sure Vagrant is installed and updated
- Verify pip is installed
which pip
- Verify ansible is installed
which ansible
- Clone source
git clone AHHHHHH
ansible-galaxy install zenoamaro.postgresql -p provision/roles
vagrant plugin install vagrant-hostsupdater
vagrant up
vagrant ssh
cd /srv/bikeshop && . /opt/venv/bikeshop_development/bin/activate
./manage.py migrate
./manage.py loaddata core/migrations/initial_data.yaml && ./manage.py loaddata authentication/migrations/initial_data.yaml
./manage.py runserver 0.0.0.0:8000
Example of dumpdata command
./manage.py dumpdata --exclude=auth --exclude=contenttypes --exclude=incoming --format=yaml
Reset the Postgres DB
vagrant ssh
sudo -i -u postgres
psql
\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**.