Copy localserver prod-static instead of linking so old files are retained.

(imported from commit 728cce9f1b3a47d62f2856a509ed65a3ac6bd451)
This commit is contained in:
Kevin Mehall
2013-11-06 11:30:20 -05:00
parent e6ca5d265d
commit 9b6c99c7af
2 changed files with 5 additions and 2 deletions

View File

@@ -25,8 +25,9 @@ class zulip::local_server {
target => '/home/zulip/zulip', target => '/home/zulip/zulip',
} }
file { '/home/zulip/prod-static': file { '/home/zulip/prod-static':
ensure => 'link', ensure => 'directory',
target => '/home/zulip/deployments/current/prod-static/serve', owner => 'zulip',
group => 'zulip',
} }
file { '/etc/postgresql/9.1/main/postgresql.conf.template': file { '/etc/postgresql/9.1/main/postgresql.conf.template':

View File

@@ -23,6 +23,8 @@ subprocess.check_call(["mv", os.path.join(extract_path, "zulip-server"), deploy_
subprocess.check_call(["rmdir", extract_path]) subprocess.check_call(["rmdir", extract_path])
subprocess.check_call(["ln", "-nsf", "/etc/zulip/settings.py", subprocess.check_call(["ln", "-nsf", "/etc/zulip/settings.py",
os.path.join(deploy_path, "zproject/local_settings.py")]) os.path.join(deploy_path, "zproject/local_settings.py")])
subprocess.check_call(["cp", "-rT", os.path.join(deploy_path, 'prod-static/serve'),
'/home/zulip/prod-static'])
print deploy_path print deploy_path
sys.exit(0) sys.exit(0)