From 3a25d617aee0ab21db8a7ce4b2bd948e52f5555d Mon Sep 17 00:00:00 2001 From: Ronny Abraham Date: Sun, 23 Jun 2019 19:21:58 +0300 Subject: [PATCH] update work on development.yml, add more info to readme --- readme.md | 21 +++++++++++++++++++++ share/templates/meta/development.yml | 5 ++++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index e69de29..b04fe95 100644 --- a/readme.md +++ b/readme.md @@ -0,0 +1,21 @@ +## adding fabric + +`git add submodule git@bitbucket.org:ronnyabraham/fabric.git fabric` + +the second "fabric" puts the submogule in a directory called 'fabric" + +workon a virtualenv that has PyQt5 + +load up bin/deploy_meta.py + +check django.numbers to make sure your port numbers aren't already being used +- database +- django + +after you create the dev file, go to usr/meta/projects and copy the layout.yml file from another project + +now go to usr/meta/virtualenv, copy bootstrap.txt to development.txt +replace pycrypto with pycryptodome +replace psycopg2 with psycopg2-binary + +add allowed_hosts = [127.0.0.1] to the django section in development.yml diff --git a/share/templates/meta/development.yml b/share/templates/meta/development.yml index 1ea9a1e..b6db090 100644 --- a/share/templates/meta/development.yml +++ b/share/templates/meta/development.yml @@ -6,7 +6,10 @@ database: users: admin: {name: DATABASE_ADMIN_NAME, pass: DATABASE_ADMIN_PASS} default: {name: DATABASE_USER_NAME, pass: DATABASE_USER_PASS} -django: {host: DJANGO_IP, port: DJANGO_PORT} +django: + host: DJANGO_IP + port: DJANGO_PORT + allowed_hosts: [127.0.0.1, 'PROJECT_NAME.BRANCH_EXT',] docker: database: env: {name: POSTGRES_DB, pass: POSTGRES_PASSWORD, user: POSTGRES_USER}