Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
go
Commits
ab02c81e
Commit
ab02c81e
authored
Jan 16, 2017
by
David Haynes
Browse files
Prelim Vagrant 3.5 support
- cannot force 3.6 development with apt afaik
parent
981cfa52
Pipeline
#769
passed with stage
in 1 minute and 13 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
provisioning/playbook.yml
View file @
ab02c81e
...
...
@@ -15,18 +15,16 @@
state
:
latest
update_cache
:
yes
with_items
:
-
python
-
python-dev
-
python-virtualenv
-
python-pip
-
git
-
python3
-
python3-dev
-
python3-virtualenv
-
python3-pip
-
libldap2-dev
-
libsasl2-dev
-
mysql-server
-
mysql-client
-
libmysqlclient-dev
-
python-mysqldb
-
libsasl2-dev
-
libjpeg-dev
-
name
:
create mysql user
mysql_user
:
...
...
@@ -56,10 +54,10 @@
append_privs
:
yes
-
name
:
install site packages to virtual env
pip
:
pip
3
:
requirements
:
"
{{
django['requirements_path']
}}"
virtualenv
:
"
{{
django['venv_path']
}}"
virtualenv_python
:
python
2.7
virtualenv_python
:
python
3.5
-
name
:
install django settings.py
template
:
...
...
@@ -94,4 +92,4 @@
ignore_errors
:
true
-
name
:
start django runserver (access via localhost:8000)
command
:
screen -dmS django bash -c "echo Starting on port {{ nginx['port'] }}; cd /vagrant/go; source ../venv/bin/activate; python manage.py runserver 0.0.0.0:8000;"
command
:
screen -dmS django bash -c "echo Starting on port {{ nginx['port'] }}; cd /vagrant/go; source ../venv/bin/activate; python
3
manage.py runserver 0.0.0.0:8000;"
provisioning/templates/settings.py.j2
View file @
ab02c81e
# Create a new file 'settings.py' and copy these contents into that file
import secret
from .
import secret
import os
AUTH_MODE = "CAS"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment