mirror of
https://github.com/viq/NewsBlur.git
synced 2025-08-31 22:20:12 +00:00
Fixing unknown host error on DO servers.
This commit is contained in:
parent
966c5b2d70
commit
c448d8731b
1 changed files with 2 additions and 0 deletions
2
fabfile.py
vendored
2
fabfile.py
vendored
|
@ -14,6 +14,7 @@ import os
|
||||||
import time
|
import time
|
||||||
import sys
|
import sys
|
||||||
import re
|
import re
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import dop.client
|
import dop.client
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
@ -439,6 +440,7 @@ def setup_supervisor():
|
||||||
@parallel
|
@parallel
|
||||||
def setup_hosts():
|
def setup_hosts():
|
||||||
put(os.path.join(env.SECRETS_PATH, 'configs/hosts'), '/etc/hosts', use_sudo=True)
|
put(os.path.join(env.SECRETS_PATH, 'configs/hosts'), '/etc/hosts', use_sudo=True)
|
||||||
|
sudo('echo "\n\n127.0.0.1 `hostname`" >> /etc/hosts')
|
||||||
|
|
||||||
def config_pgbouncer():
|
def config_pgbouncer():
|
||||||
put('config/pgbouncer.conf', '/etc/pgbouncer/pgbouncer.ini', use_sudo=True)
|
put('config/pgbouncer.conf', '/etc/pgbouncer/pgbouncer.ini', use_sudo=True)
|
||||||
|
|
Loading…
Add table
Reference in a new issue