1
0
mirror of https://github.com/peeringdb/peeringdb.git synced 2024-05-11 05:55:09 +00:00

better instructions for dev environment

This commit is contained in:
Stefan Pratter
2018-11-09 11:01:23 +00:00
parent 0b617ff259
commit 80a9fc01a8
2 changed files with 7 additions and 7 deletions

View File

@@ -30,18 +30,18 @@ Create ~/srv
mkdir ~/srv
```
Copy `config/facsimile/dev.yaml` to `config/facsimile/mydev.yaml` and make changes where needed.
Copy `config/facsimile/dev.example.yaml` to `config/facsimile/dev.yaml` and make changes where needed.
```sh
cp config/facsimile/dev.yaml config/facsimile/mydev.yaml
vi config/facsimile/mydev.yaml
cp config/facsimile/dev.example.yaml config/facsimile/dev.yaml
vi config/facsimile/dev.yaml
```
Use the `facs` command to deploy a virtualenv and server files for your dev instance
```sh
facs peeringdb mydev --src-dir=.
facs venv mydev --src-dir=.
facs peeringdb dev --src-dir=.
facs venv dev --src-dir=.
```
Files will be deployed to `~/srv/dev.peeringdb.com` (unless you changed the location in your config)
@@ -83,10 +83,10 @@ ln -s ~/srv/dev.peeringdb.com/peeringdb/peeringdb_com peeringdb_com
## Setup database
During deploy facsimile will have created a sql file at `.facsimile/tmp/RELEASE/mydev/peeringdb/init.sql` - load it into mysql.
During deploy facsimile will have created a sql file at `.facsimile/tmp/RELEASE/dev/peeringdb/init.sql` - load it into mysql.
```sh
mysql -u root -p < .facsimile/tmp/RELEASE/mydev/peeringdb/init.sql
mysql -u root -p < .facsimile/tmp/RELEASE/dev/peeringdb/init.sql
```
## Migrate database - empty, from scratch