mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 23:43:43 +00:00
Copy localserver prod-static instead of linking so old files are retained.
(imported from commit 728cce9f1b3a47d62f2856a509ed65a3ac6bd451)
This commit is contained in:
@@ -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':
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user