mirror of https://github.com/zulip/zulip.git
Copy localserver prod-static instead of linking so old files are retained.
(imported from commit 728cce9f1b3a47d62f2856a509ed65a3ac6bd451)
This commit is contained in:
parent
e6ca5d265d
commit
9b6c99c7af
|
@ -25,8 +25,9 @@ class zulip::local_server {
|
|||
target => '/home/zulip/zulip',
|
||||
}
|
||||
file { '/home/zulip/prod-static':
|
||||
ensure => 'link',
|
||||
target => '/home/zulip/deployments/current/prod-static/serve',
|
||||
ensure => 'directory',
|
||||
owner => 'zulip',
|
||||
group => 'zulip',
|
||||
}
|
||||
|
||||
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(["ln", "-nsf", "/etc/zulip/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
|
||||
sys.exit(0)
|
||||
|
|
Loading…
Reference in New Issue