Commit f2e2ec38591c4f1768b3748db85198063bc7ebe1
Exists in
master
and in
39 other branches
Merge branch 'automation' into 'master'
Automation improvements to automated deployment; for development environments for now.
Showing
5 changed files
with
18 additions
and
11 deletions
Show diff stats
colab/management/initconfig.py
@@ -28,16 +28,18 @@ EMAIL_SUBJECT_PREFIX: '[colab]' | @@ -28,16 +28,18 @@ EMAIL_SUBJECT_PREFIX: '[colab]' | ||
28 | 28 | ||
29 | SECRET_KEY: '{secret_key}' | 29 | SECRET_KEY: '{secret_key}' |
30 | 30 | ||
31 | -SITE_URL: 'http://www.example.com/' | 31 | +SITE_URL: 'http://localhost:8000/' |
32 | BROWSERID_AUDIENCES: | 32 | BROWSERID_AUDIENCES: |
33 | - - http://example.com | ||
34 | - - https://example.org | ||
35 | - - http://example.net | 33 | + - http://localhost:8000 |
34 | +# - http://example.com | ||
35 | +# - https://example.org | ||
36 | +# - http://example.net | ||
36 | 37 | ||
37 | ALLOWED_HOSTS: | 38 | ALLOWED_HOSTS: |
38 | - - example.com | ||
39 | - - example.org | ||
40 | - - example.net | 39 | + - localhost |
40 | +# - example.com | ||
41 | +# - example.org | ||
42 | +# - example.net | ||
41 | 43 | ||
42 | ### Uncomment to enable Converse.js | 44 | ### Uncomment to enable Converse.js |
43 | # CONVERSEJS_ENABLED: True | 45 | # CONVERSEJS_ENABLED: True |
@@ -11,8 +11,8 @@ done | @@ -11,8 +11,8 @@ done | ||
11 | 11 | ||
12 | # very simple OS detection | 12 | # very simple OS detection |
13 | if [ -x /usr/bin/apt-get ]; then | 13 | if [ -x /usr/bin/apt-get ]; then |
14 | - exec sh $basedir/vagrant/ubuntu.sh | 14 | + exec $basedir/vagrant/ubuntu.sh |
15 | fi | 15 | fi |
16 | if [ -x /usr/bin/yum ]; then | 16 | if [ -x /usr/bin/yum ]; then |
17 | - exec sh $basedir/vagrant/centos.sh | 17 | + exec $basedir/vagrant/centos.sh |
18 | fi | 18 | fi |
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | 2 | ||
3 | +set -x | ||
4 | + | ||
3 | export VIRTUALENVWRAPPER_PYTHON="/usr/bin/python2.7" | 5 | export VIRTUALENVWRAPPER_PYTHON="/usr/bin/python2.7" |
4 | 6 | ||
7 | +set +e | ||
5 | if [ -f /usr/local/bin/virtualenvwrapper.sh ]; then | 8 | if [ -f /usr/local/bin/virtualenvwrapper.sh ]; then |
6 | source /usr/local/bin/virtualenvwrapper.sh | 9 | source /usr/local/bin/virtualenvwrapper.sh |
7 | else | 10 | else |
@@ -13,6 +16,7 @@ if [ ! -d /home/vagrant/.virtualenvs/colab ]; then | @@ -13,6 +16,7 @@ if [ ! -d /home/vagrant/.virtualenvs/colab ]; then | ||
13 | fi | 16 | fi |
14 | 17 | ||
15 | workon colab | 18 | workon colab |
19 | +set -e | ||
16 | 20 | ||
17 | for dir in /vagrant/colab /vagrant; do | 21 | for dir in /vagrant/colab /vagrant; do |
18 | if [ -f $dir/setup.py ]; then | 22 | if [ -f $dir/setup.py ]; then |