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

docs and deploy fixes

This commit is contained in:
Stefan Pratter
2018-11-09 10:43:15 +00:00
parent 19b932322a
commit 6d2a98b89d
4 changed files with 9 additions and 5 deletions

View File

@@ -29,15 +29,16 @@ rc:
log: {{environ.HOME}}/srv/dev.peeringdb.com/var/log/api-cache.log
recaptcha:
public_key: 6LdTFzkUAAAAAJpkAfSUOue7iNDcVY3H2xpEUVON
public_key: captcha-public-key-goes-here
oauth:
enabled: true
enabled: false
misc:
base_url : http://localhost
session:
domain: localhost
secure: False
suggestions:
org_id: 18982

View File

@@ -12,6 +12,7 @@ misc:
org_id: 0
session:
domain: peeringdb.com
secure: True
ratelimits:
request_login_POST: "4/m"
view_request_ownership_POST: "3/m"

View File

@@ -46,7 +46,7 @@ SECRET_KEY = '{{module.djangokey.password}}'
SESSION_COOKIE_DOMAIN = '{{ env.misc.session.domain }}'
{% endif %}
SESSION_COOKIE_SECURE = True
SESSION_COOKIE_SECURE = {{ env.misc.session.secure }}
RECAPTCHA_PUBLIC_KEY = '{{ env.recaptcha.public_key }}'
RECAPTCHA_SECRET_KEY = '{{ module.recaptcha.password }}'

View File

@@ -32,11 +32,13 @@ mkdir ~/srv
facs $component $environment ($version|--src-dir=. for dev)
```
Copy `config/facsimile/dev.yaml` to `config/facsimile/mydev.yaml` and make changes where needed.
Use the `facs` command to deploy a virtualenv and server files for your dev instance
```sh
facs peeringdb dev --src-dir=.
facs venv dev --src-dir=.
facs peeringdb mydev --src-dir=.
facs venv mydev --src-dir=.
```
Files will be deployed to `~/srv/dev.peeringdb.com`