Fix cname link

refactor-builder
Eric Holscher 2013-11-25 22:20:45 -08:00
parent efd2d8072e
commit fe1c375dc0
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -10,6 +10,7 @@ doc_root
local_settings.py
locks/*
logs/*
media/json
media/dash
media/epub
media/export

View File

@ -676,7 +676,7 @@ def symlink_cnames(version):
# Chop off the version from the end.
docs_dir = '/'.join(docs_dir.split('/')[:-1])
# 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('ln -nsf %s %s' % (docs_dir, symlink))