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
db54ec11ee
|
8 years ago | |
---|---|---|
bikeshop_project | 8 years ago | |
docker/nginx | 8 years ago | |
requirements | 8 years ago | |
.gitignore | 8 years ago | |
.travis.yml | 8 years ago | |
Dockerfile | 8 years ago | |
Dockerfile-dev | 8 years ago | |
Dockerfile-webpack | 8 years ago | |
LICENSE | 8 years ago | |
README.md | 9 years ago | |
docker-compose.dev.yml | 8 years ago | |
docker-compose.prod.yml | 8 years ago | |
docker-compose.yml | 8 years ago | |
workstand.env | 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 (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/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
- try to load http://bikeshop.local/
- 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
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**.
### 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`