Fix cname link
parent
efd2d8072e
commit
fe1c375dc0
|
@ -10,6 +10,7 @@ doc_root
|
||||||
local_settings.py
|
local_settings.py
|
||||||
locks/*
|
locks/*
|
||||||
logs/*
|
logs/*
|
||||||
|
media/json
|
||||||
media/dash
|
media/dash
|
||||||
media/epub
|
media/epub
|
||||||
media/export
|
media/export
|
||||||
|
|
|
@ -676,7 +676,7 @@ def symlink_cnames(version):
|
||||||
# Chop off the version from the end.
|
# Chop off the version from the end.
|
||||||
docs_dir = '/'.join(docs_dir.split('/')[:-1])
|
docs_dir = '/'.join(docs_dir.split('/')[:-1])
|
||||||
# Old symlink location -- Keep this here til we change nginx over
|
# Old symlink location -- Keep this here til we change nginx over
|
||||||
symlink = version.project.rtd_cname_path(cname)
|
symlink = version.project.cnames_symlink_path(cname)
|
||||||
run_on_app_servers('mkdir -p %s' % '/'.join(symlink.split('/')[:-1]))
|
run_on_app_servers('mkdir -p %s' % '/'.join(symlink.split('/')[:-1]))
|
||||||
run_on_app_servers('ln -nsf %s %s' % (docs_dir, symlink))
|
run_on_app_servers('ln -nsf %s %s' % (docs_dir, symlink))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue