Commit ab02c81e authored by David Haynes's avatar 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
......@@ -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:
pip3:
requirements: "{{ django['requirements_path'] }}"
virtualenv: "{{ django['venv_path'] }}"
virtualenv_python: python2.7
virtualenv_python: python3.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; python3 manage.py runserver 0.0.0.0:8000;"
# Create a new file 'settings.py' and copy these contents into that file
import secret
from . import secret
import os
AUTH_MODE = "CAS"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment