mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-05 16:58:59 +00:00
Copying server settings.
This commit is contained in:
parent
049d75c16d
commit
c52e5c562b
2 changed files with 12 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -20,3 +20,4 @@ xcuserdata
|
||||||
*.mode1v3
|
*.mode1v3
|
||||||
*.pbxuser
|
*.pbxuser
|
||||||
media/maintenance.html
|
media/maintenance.html
|
||||||
|
config/settings
|
10
fabfile.py
vendored
10
fabfile.py
vendored
|
@ -240,6 +240,7 @@ def setup_app():
|
||||||
setup_vps()
|
setup_vps()
|
||||||
setup_app_firewall()
|
setup_app_firewall()
|
||||||
setup_app_motd()
|
setup_app_motd()
|
||||||
|
copy_app_settings()
|
||||||
setup_gunicorn(supervisor=True)
|
setup_gunicorn(supervisor=True)
|
||||||
update_gunicorn()
|
update_gunicorn()
|
||||||
|
|
||||||
|
@ -249,6 +250,7 @@ def setup_db():
|
||||||
setup_db_firewall()
|
setup_db_firewall()
|
||||||
setup_db_motd()
|
setup_db_motd()
|
||||||
# setup_rabbitmq()
|
# setup_rabbitmq()
|
||||||
|
copy_task_settings()
|
||||||
setup_memcached()
|
setup_memcached()
|
||||||
setup_postgres()
|
setup_postgres()
|
||||||
setup_mongo()
|
setup_mongo()
|
||||||
|
@ -260,6 +262,7 @@ def setup_task():
|
||||||
setup_vps()
|
setup_vps()
|
||||||
setup_task_firewall()
|
setup_task_firewall()
|
||||||
setup_task_motd()
|
setup_task_motd()
|
||||||
|
copy_task_settings()
|
||||||
enable_celery_supervisor()
|
enable_celery_supervisor()
|
||||||
setup_gunicorn(supervisor=False)
|
setup_gunicorn(supervisor=False)
|
||||||
update_gunicorn()
|
update_gunicorn()
|
||||||
|
@ -495,6 +498,9 @@ def setup_node():
|
||||||
sudo('ufw allow 8888')
|
sudo('ufw allow 8888')
|
||||||
put('config/supervisor_node.conf', '/etc/supervisor/conf.d/node.conf', use_sudo=True)
|
put('config/supervisor_node.conf', '/etc/supervisor/conf.d/node.conf', use_sudo=True)
|
||||||
|
|
||||||
|
def copy_app_settings():
|
||||||
|
put('config/settings/app_settings.py', '%s/local_settings.py' % env.NEWSBLUR_PATH)
|
||||||
|
run('echo "\nSERVER_NAME = \\\\"`hostname`\\\\"" >> %s/local_settings.py' % env.NEWSBLUR_PATH)
|
||||||
|
|
||||||
# ==============
|
# ==============
|
||||||
# = Setup - DB =
|
# = Setup - DB =
|
||||||
|
@ -572,6 +578,10 @@ def setup_task_motd():
|
||||||
def enable_celery_supervisor():
|
def enable_celery_supervisor():
|
||||||
put('config/supervisor_celeryd.conf', '/etc/supervisor/conf.d/celeryd.conf', use_sudo=True)
|
put('config/supervisor_celeryd.conf', '/etc/supervisor/conf.d/celeryd.conf', use_sudo=True)
|
||||||
|
|
||||||
|
def copy_task_settings():
|
||||||
|
put('config/settings/task_settings.py', '%s/local_settings.py' % env.NEWSBLUR_PATH)
|
||||||
|
run('echo "\nSERVER_NAME = \\\\"`hostname`\\\\"" >> %s/local_settings.py' % env.NEWSBLUR_PATH)
|
||||||
|
|
||||||
# ======
|
# ======
|
||||||
# = S3 =
|
# = S3 =
|
||||||
# ======
|
# ======
|
||||||
|
|
Loading…
Add table
Reference in a new issue