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:
@@ -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
|
||||
|
||||
|
@@ -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"
|
||||
|
@@ -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 }}'
|
||||
|
@@ -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`
|
||||
|
Reference in New Issue
Block a user