Drop support for https://danbooru.donmai.us/cache/tags.json. This was a nightly dump of the tags table that was originally added in #1012. It was never documented and never really used except for by the DanbooruUp extension.
24 lines
899 B
Ruby
24 lines
899 B
Ruby
namespace :symlink do
|
|
desc "Link the local config files"
|
|
task :local_files do
|
|
on roles(:app, :worker) do
|
|
execute :ln, "-s", "#{deploy_to}/shared/config/danbooru_local_config.rb", "#{release_path}/config/danbooru_local_config.rb"
|
|
execute :ln, "-s", "#{deploy_to}/shared/config/database.yml", "#{release_path}/config/database.yml"
|
|
if test("[ -f #{deploy_to}/shared/config/newrelic.yml ]")
|
|
execute :ln, "-s", "#{deploy_to}/shared/config/newrelic.yml", "#{release_path}/config/newrelic.yml"
|
|
end
|
|
end
|
|
end
|
|
|
|
desc "Link the local directories"
|
|
task :directories do
|
|
on roles(:app, :worker) do
|
|
execute :rm, "-f", "#{release_path}/public/data"
|
|
execute :ln, "-s", "#{deploy_to}/shared/data", "#{release_path}/public/data"
|
|
end
|
|
end
|
|
end
|
|
|
|
after "deploy:symlink:shared", "symlink:local_files"
|
|
after "deploy:symlink:shared", "symlink:directories"
|