File tree Expand file tree Collapse file tree 6 files changed +16
-10
lines changed
cac-tripplanner.app/templates
cac-tripplanner.otp-data/tasks
python/cac_tripplanner/cac_tripplanner Expand file tree Collapse file tree 6 files changed +16
-10
lines changed Original file line number Diff line number Diff line change 1
1
azavea.git,0.1.0
2
2
azavea.java,0.2.6
3
- azavea.opentripplanner,1.0.0
3
+ azavea.opentripplanner,1.0.1
4
4
azavea.nginx,0.2.1
5
5
azavea.nodejs,0.4.0
6
6
azavea.packer,0.2.0
Original file line number Diff line number Diff line change 1
- allowed_hosts: {{ allowed_hosts }}
2
1
internal_ips: {{ internal_ips }}
3
2
postgis_version: {{ postgis_version }}
4
3
aws_storage_bucket_name: '{{ aws_storage_bucket_name }}'
Original file line number Diff line number Diff line change 23
23
when : test
24
24
25
25
- name : Copy OTP Data (test/develop)
26
- copy : src=./otp_data/ dest="{{ otp_data_dir }}/" owner={{ansible_ssh_user }} group={{ansible_ssh_user }} mode=0664
26
+ copy : src=./otp_data/ dest="{{ otp_data_dir }}/" owner={{ansible_user_id }} group={{ansible_user_id }} mode=0664
27
27
when : develop or test
28
28
29
29
- name : Build OTP Graph (test/develop)
45
45
when : develop or test
46
46
47
47
- name : Copy Local Graph to Graph Directory (production)
48
- copy : src=./otp_data/Graph.obj dest="{{ otp_data_dir }}/{{ otp_router }}/Graph.obj" owner={{ansible_ssh_user }} group={{ansible_ssh_user }} mode=0664
48
+ copy : src=./otp_data/Graph.obj dest="{{ otp_data_dir }}/{{ otp_router }}/Graph.obj" owner={{ansible_user_id }} group={{ansible_user_id }} mode=0664
49
49
when : production
Original file line number Diff line number Diff line change 77
77
" sudo apt-get update" ,
78
78
" mkdir -p {{user `ansible_staging_directory`}}" ,
79
79
" mkdir -p {{user `intermediate_directory`}}" ,
80
- " sudo apt-get -y install build-essential python-dev python-pip git" ,
81
- " sudo pip install paramiko==1.16.0" ,
82
- " sudo pip install ansible==1.8.4"
80
+ " sudo apt-get -y install build-essential python-dev python-pip git libssl-dev libffi-dev" ,
81
+ " sudo pip install --upgrade ansible setuptools"
83
82
]
84
83
},
85
84
{
105
104
"playbook_file" : " {{user `local_project_directory`}}/deployment/ansible/app.yml" ,
106
105
"inventory_file" : " {{user `local_project_directory`}}/deployment/ansible/hosts/hosts.app" ,
107
106
"group_vars" : " {{user `local_project_directory`}}/deployment/ansible/group_vars/" ,
107
+ "extra_arguments" : [
108
+ " --user 'ubuntu'"
109
+ ],
108
110
"only" : [" app" ]
109
111
},
110
112
{
111
113
"type" : " ansible-local" ,
112
114
"playbook_file" : " {{user `local_project_directory`}}/deployment/ansible/otp.yml" ,
113
115
"inventory_file" : " {{user `local_project_directory`}}/deployment/ansible/hosts/hosts.otp" ,
114
116
"group_vars" : " {{user `local_project_directory`}}/deployment/ansible/group_vars/" ,
117
+ "extra_arguments" : [
118
+ " --user 'ubuntu'"
119
+ ],
115
120
"only" : [" otp" ]
116
121
}
117
122
]
Original file line number Diff line number Diff line change 34
34
# overridden via the secrets file. This can't be automatically set
35
35
# to the host machine's DNS here, because this code runs in a VM.
36
36
'otp_url' : 'http://192.168.8.26/otp/routers/{router}/' ,
37
- 'allowed_hosts' : ['127.0.0.1' , 'localhost' ],
38
37
'internal_ips' : ['0.0.0.0' , '127.0.0.1' ],
39
38
'postgis_version' : [2 , 1 , 5 ],
40
39
'build_dir' : '/opt/app/src' ,
63
62
# SECURITY WARNING: don't run with debug turned on in production!
64
63
DEBUG = not secrets ['production' ]
65
64
66
- ALLOWED_HOSTS = secrets [ 'allowed_hosts ' ]
65
+ ALLOWED_HOSTS = [ '* ' ]
67
66
68
67
INTERNAL_IPS = tuple (secrets ['internal_ips' ])
69
68
Original file line number Diff line number Diff line change @@ -64,8 +64,11 @@ var copyBowerFiles = function(filter, extraFiles) {
64
64
. pipe ( addsrc ( extraFiles ) ) ;
65
65
} ;
66
66
67
+ // silence the collectstatic output
68
+ // gulp-run hangs if the output is too large:
69
+ // https://github.com/MrBoolean/gulp-run/issues/34
67
70
gulp . task ( 'collectstatic' , function ( ) {
68
- return run ( 'python ' + pythonRoot + '/manage.py collectstatic --noinput' ) . exec ( ) ;
71
+ return run ( 'python ' + pythonRoot + '/manage.py collectstatic --noinput -v0 ' ) . exec ( ) ;
69
72
} ) ;
70
73
71
74
gulp . task ( 'clean' , function ( ) {
You can’t perform that action at this time.
0 commit comments