diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-12-18 12:18:11 +0100 |
---|---|---|
committer | James Edwards-Jones <jedwardsjones@gitlab.com> | 2017-01-31 22:53:55 +0000 |
commit | 4afab3d4b64bf4aac228306636bb1b477debe8ce (patch) | |
tree | 9f26dd9ad06ab3976b328b330b4cc0e13185fc0d /app/workers/pages_worker.rb | |
parent | 6bb7a19c2b4b130438cc4f24512feac9941a9b02 (diff) | |
download | gitlab-ce-4afab3d4b64bf4aac228306636bb1b477debe8ce.tar.gz |
Revert "Store pages in shared/pages/fqdn/fqdn/public or shared/pages/fqdn/subpath/public - makes it simpler to implement CNAMEs in future"
This reverts commit 86a2a78f0d13a678899460638add6b862059433e.
Diffstat (limited to 'app/workers/pages_worker.rb')
-rw-r--r-- | app/workers/pages_worker.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/workers/pages_worker.rb b/app/workers/pages_worker.rb index 836e8d8ad9d..6c6bb7ed13f 100644 --- a/app/workers/pages_worker.rb +++ b/app/workers/pages_worker.rb @@ -121,6 +121,10 @@ class PagesWorker @previous_public_path ||= File.join(pages_path, "public.#{SecureRandom.hex}") end + def lock_path + @lock_path ||= File.join(pages_path, 'deploy.lock') + end + def ref build.ref end |