Fix log folder permissions and precompile scss

jk/ansible-provisioning
John Kelly 2018-05-13 22:13:45 -04:00
parent 38e151224d
commit 4d733d1415
5 changed files with 24 additions and 7 deletions

View File

@ -25,7 +25,7 @@ email_host: "{{ vault_email_host }}"
email_port: "{{ vault_email_port }}"
default_from_email: "notices@gluejar.com"
broker_transport: "redis"
broker_host: "localhost"
broker_host: "127.0.0.1"
broker_port: 6379
broker_vhost: "0"

View File

@ -1,2 +1,2 @@
[production]
regluit-prod ansible_host=ec2-18-206-73-169.compute-1.amazonaws.com ansible_user=ubuntu
regluit-prod ansible_host=m.unglue.it ansible_user=ubuntu

View File

@ -7,6 +7,7 @@
with_items:
- 'apache2'
- 'libapache2-mod-wsgi'
- 'cronolog'
- name: Ensure apache is running and enabled
become: yes
@ -69,6 +70,15 @@
notify:
- restart apache
- name: Generate css files
django_manage:
app_path: "{{ project_path }}"
command: "compilescss"
virtualenv: "{{ project_path }}/venv"
settings: "{{ django_settings_module }}"
notify:
- restart apache
- name: Generate static files
django_manage:
app_path: "{{ project_path }}"
@ -77,3 +87,10 @@
settings: "{{ django_settings_module }}"
notify:
- restart apache
- name: Add unglueit log file to www-data group
file:
path: "/var/log/regluit/unglue.it.log"
group: www-data
notify:
- restart apache

View File

@ -85,7 +85,7 @@
state: directory
owner: "{{ user_name }}"
group: "www-data"
mode: 2775
mode: 0775
- name: Open ports on firewall
become: yes

View File

@ -105,6 +105,6 @@ urllib3==1.16
beautifulsoup4==4.6.0
RISparser==0.4.2
# include these 2 for development
#libsass==0.13.4
#django-compressor==2.2
django-sass-processor==0.5.6
libsass==0.14.5
django-compressor==2.2
django-sass-processor==0.7