mirror of
https://github.com/fspc/workstand.git
synced 2025-10-23 21:35:34 -04:00
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 (https://www.virtualbox.org/)
- Make sure Vagrant is installed and updated (https://www.vagrantup.com/)
- Verify pip is installed
which pip(eg. using http://brew.sh/brew install pip) - Verify ansible is installed
which ansible(eg. using http://brew.sh/brew install ansible) -
- Verify bower is installed
which ansible(eg. using http://brew.sh/brew install bower)
- Verify bower is installed
- Clone source
git clone AHHHHHH - cd to root of repo &
bower install ansible-galaxy install zenoamaro.postgresql -p provision/rolesvagrant plugin install vagrant-hostsupdatervagrant upvagrant sshcd /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- try to load http://bikeshop.local/
- may need to restart supervisor on vagrant machine
service supervisor restartif receiving 502
Example of dumpdata command
./manage.py dumpdata --exclude=auth --exclude=contenttypes --exclude=incoming --format=yaml
Reset the Postgres DB
vagrant sshsudo -i -u postgrespsql\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`
Languages
Python
41.8%
HTML
34.7%
JavaScript
16.3%
SCSS
6.3%
Dockerfile
0.9%