This repository has been archived on 2021-06-29. You can view files and clone it, but cannot push or open issues or pull requests.
2014-11-14 09:59:08 +00:00
|
|
|
- name: Pip Install Shelfzilla Deps
|
|
|
|
pip: requirements="{{shelfzilla_base_path}}/config/production/requirements.txt"
|
|
|
|
executable="/usr/bin/pip2"
|
|
|
|
sudo: yes
|
|
|
|
|
2014-11-14 18:52:09 +00:00
|
|
|
- lineinfile: dest="{{shelfzilla_base_path}}/shelfzilla/settings/configfile.py"
|
|
|
|
regexp="^(.*)os\.environ\[\'APP\_CONFIGFILE\'\](.*)$"
|
|
|
|
state=present
|
2014-11-16 15:32:32 +00:00
|
|
|
line="\1\'{{ shelfzilla_base_path }}/{{ shelfzillla_config_file }}\'\2"
|
2014-11-14 18:52:09 +00:00
|
|
|
backrefs=yes
|
|
|
|
sudo: yes
|
|
|
|
|
2014-11-14 09:59:08 +00:00
|
|
|
- name: Python Migrate
|
2014-11-14 18:52:09 +00:00
|
|
|
shell: /usr/bin/python2.7 {{shelfzilla_base_path}}/manage.py migrate --no-initial-data --settings=shelfzilla.settings.configfile
|
2014-11-14 09:59:08 +00:00
|
|
|
sudo: yes
|
2014-11-14 18:52:09 +00:00
|
|
|
sudo_user: postgres
|
2014-11-14 09:59:08 +00:00
|
|
|
|
|
|
|
- name: Python Collectstatic
|
|
|
|
shell: /usr/bin/python2.7 {{shelfzilla_base_path}}/manage.py collectstatic --clear --noinput --settings=shelfzilla.settings.configfile
|
|
|
|
sudo: yes
|