mirror of
https://github.com/fspc/workstand.git
synced 2025-02-23 09:13:23 -05:00
Merge branch 'feature/setup' into development
* feature/setup: Starting & Stopping Vagrant Small Updates to ReadMe
This commit is contained in:
commit
40c0e63b55
23
README.md
23
README.md
@ -1,19 +1,22 @@
|
||||
## 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/](http://bikeshop-dev.local:8000/).
|
||||
|
||||
1. Make sure Virtualbox is installed and updated
|
||||
2. Make sure Vagrant is installed and updated
|
||||
3. Verify *pip* is installed `which pip`
|
||||
4. Verify *ansible* is installed `which ansible`
|
||||
1. Make sure Virtualbox is installed and updated ([https://www.virtualbox.org/](https://www.virtualbox.org/))
|
||||
2. Make sure Vagrant is installed and updated ([https://www.vagrantup.com/](https://www.vagrantup.com/))
|
||||
3. Verify *pip* is installed `which pip` (eg. using [http://brew.sh/](homebrew) `brew install pip`)
|
||||
4. Verify *ansible* is installed `which ansible` (eg. using [http://brew.sh/](homebrew) `brew install ansible`)
|
||||
5. 4. Verify *bower* is installed `which ansible` (eg. using [http://brew.sh/](homebrew) `brew install bower`)
|
||||
5. Clone source `git clone AHHHHHH`
|
||||
6. cd to root of repo & `bower install`
|
||||
6. `ansible-galaxy install zenoamaro.postgresql -p provision/roles`
|
||||
7. `vagrant plugin install vagrant-hostsupdater`
|
||||
8. `vagrant up`
|
||||
9. `vagrant ssh`
|
||||
10. `cd /srv/bikeshop && . /opt/venv/bikeshop_development/bin/activate`
|
||||
10. `cd /srv/bikeshop && . /opt/venv/bikeshop-development/bin/activate`
|
||||
11. `./manage.py migrate`
|
||||
12. `./manage.py loaddata core/migrations/initial_data.yaml && ./manage.py loaddata authentication/migrations/initial_data.yaml`
|
||||
13. `./manage.py runserver 0.0.0.0:8000`
|
||||
13. try to load [http://bikeshop.local/](http://bikeshop.local/)
|
||||
13. 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
|
||||
@ -30,4 +33,10 @@ 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**.
|
||||
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`
|
Loading…
x
Reference in New Issue
Block a user