mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-05 16:58:59 +00:00
Fixing ulimit on new machines. Upgrading celery.
This commit is contained in:
parent
2b991fd031
commit
e624fe53d9
2 changed files with 8 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
|||
BeautifulSoup==3.2.1
|
||||
boto==2.8.0
|
||||
celery==3.0.16
|
||||
celery==3.0.17
|
||||
chardet==2.1.1
|
||||
cssutils==0.9.10b1
|
||||
django-celery-with-redis==3.0
|
||||
|
|
10
fabfile.py
vendored
10
fabfile.py
vendored
|
@ -561,7 +561,11 @@ def setup_ulimit():
|
|||
run('echo "* soft nofile 10000" >> /etc/security/limits.conf', pty=False)
|
||||
run('echo "* hard nofile 10000" >> /etc/security/limits.conf', pty=False)
|
||||
sudo('chmod 644 /etc/security/limits.conf', pty=False)
|
||||
|
||||
sudo('chmod 666 /etc/sysctl.conf', pty=False)
|
||||
run('echo "fs.file-max = 10000" >> /etc/sysctl.conf', pty=False)
|
||||
sudo('chmod 644 /etc/sysctl.conf', pty=False)
|
||||
sudo('sysctl -p')
|
||||
|
||||
# run('touch /home/ubuntu/.bash_profile')
|
||||
# run('echo "ulimit -n $FILEMAX" >> /home/ubuntu/.bash_profile')
|
||||
|
||||
|
@ -744,7 +748,7 @@ def downgrade_pil():
|
|||
# = Setup - DB =
|
||||
# ==============
|
||||
|
||||
@parallel
|
||||
# @parallel
|
||||
def setup_db_firewall():
|
||||
ports = [
|
||||
5432, # PostgreSQL
|
||||
|
@ -761,7 +765,7 @@ def setup_db_firewall():
|
|||
|
||||
# DigitalOcean
|
||||
for ip in set(env.roledefs['app'] +
|
||||
env.roledefs['dbdo'] +
|
||||
env.roledefs['db'] +
|
||||
env.roledefs['dev'] +
|
||||
env.roledefs['debug'] +
|
||||
env.roledefs['task'] +
|
||||
|
|
Loading…
Add table
Reference in a new issue