1
1
Fork 0
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2024-06-10 06:36:08 +02:00

Simplify settings for archmanweb

This commit is contained in:
Jakub Klinkovský 2020-12-15 23:43:49 +01:00
parent 20d655d4cf
commit 6b42f2d5fc
No known key found for this signature in database
GPG Key ID: AB5964AEB9FEDDDC
5 changed files with 4 additions and 6 deletions

View File

@ -6,7 +6,6 @@ archmanweb_allowed_hosts: ["{{ archmanweb_domain }}"]
archmanweb_nginx_conf: '/etc/nginx/nginx.d/archmanweb.conf'
archmanweb_repository: 'https://github.com/lahwaacz/archmanweb.git'
archmanweb_version: deployment
archmanweb_django_settings_module: production.settings
#archmanweb_pgp_key: ['932BA3FA0C86812A32D1F54DAB5964AEB9FEDDDC'] # Jakub Klinkovský (lahwaacz)
archmanweb_forced_deploy: false

View File

@ -44,7 +44,7 @@
register: release
- name: configure archmanweb
template: src=local_settings.py.j2 dest={{ archmanweb_dir }}/repo/production/local_settings.py owner=archmanweb group=archmanweb mode=0660
template: src=local_settings.py.j2 dest={{ archmanweb_dir }}/repo/local_settings.py owner=archmanweb group=archmanweb mode=0660
register: config
no_log: true
@ -66,8 +66,6 @@
- migrate
- collectstatic
- man_drop_cache
environment:
DJANGO_SETTINGS_MODULE: "{{ archmanweb_django_settings_module }}"
become: true
become_user: archmanweb
when: db_created.changed or release.changed or config.changed or archmanweb_forced_deploy

View File

@ -1,7 +1,6 @@
[uwsgi]
plugins = python
chdir = {{ archmanweb_dir }}/repo
env = DJANGO_SETTINGS_MODULE={{ archmanweb_django_settings_module }}
module = wsgi:application
socket = /run/uwsgi/archmanweb.sock
chmod-socket = 660

View File

@ -5,7 +5,6 @@ Description=Update archmanweb database
Type=oneshot
User=archmanweb
WorkingDirectory={{ archmanweb_dir }}/repo/
Environment=DJANGO_SETTINGS_MODULE="{{ archmanweb_django_settings_module }}"
ExecStart=/usr/bin/python3 manage.py man_update --cache-dir {{ archmanweb_cache_dir }}
ProtectSystem=full

View File

@ -1,3 +1,6 @@
# Import the common settings, which may be overridden in this file.
from settings import *
DEBUG = False
# Make this unique, and don't share it with anybody.