mirror of
https://github.com/nikdoof/vapemap.git
synced 2025-12-13 06:22:16 +00:00
Brings in the basic config for Vagrant, missing elasticsearch but its enough to bring up a Vagrant instance of the main web app.
35 lines
785 B
Plaintext
35 lines
785 B
Plaintext
CONFIG = {
|
|
<% if mode == 'django' -%>
|
|
'mode': 'django',
|
|
<% else -%>
|
|
'mode': 'wsgi',
|
|
<% end -%>
|
|
<% if virtualenv -%>
|
|
'environment': {
|
|
<% if environment -%>
|
|
'ENVIRONMENT': '<%= environment %>',
|
|
<% end -%>
|
|
'PYTHONPATH': '<%= virtualenv %>'
|
|
},
|
|
<% end -%>
|
|
'working_dir': '<%= dir %>',
|
|
'user': 'www-data',
|
|
'group': 'www-data',
|
|
<% if virtualenv -%>
|
|
'python': '<%= virtualenv %>/bin/python',
|
|
<% else -%>
|
|
'python': '/usr/bin/python',
|
|
<% end -%>
|
|
'args': (
|
|
<% if !virtualenv and !bind -%>
|
|
'--bind=unix:/tmp/gunicorn-<%= name %>.socket',
|
|
<% elsif virtualenv and !bind -%>
|
|
'--bind=unix:<%= virtualenv %>/<%= name %>.socket',
|
|
<% else -%>
|
|
'--bind=<%= bind %>',
|
|
<% end -%>
|
|
'--workers=<%= @processorcount.to_i*2 %>',
|
|
'--timeout=30',
|
|
'app:app',
|
|
),
|
|
} |