A tool for measuring the coverage of Bluesky/ATProto relays
9
fork

Configure Feed

Select the types of activity you want to include in your feed.

added capistrano deploy config

+37
+2
Capfile
··· 1 + load 'deploy' 2 + load 'config/deploy'
+35
config/deploy.rb
··· 1 + set :application, "pulsar" 2 + set :repository, "https://tangled.org/mackuba.eu/pulsar" 3 + set :scm, :git 4 + set :keep_releases, 10 5 + set :use_sudo, false 6 + set :deploy_to, "/var/www/pulsar" 7 + set :deploy_via, :remote_cache 8 + set :migrate_env, "RACK_ENV=production" 9 + set :public_children, [] 10 + set :shared_children, ['log', 'tmp/pids'] 11 + 12 + server "pulsar.feeds.blue", :app, :web, :db, :primary => true 13 + 14 + before 'deploy:finalize_update', 'deploy:bundle_install' 15 + 16 + after 'deploy', 'deploy:cleanup' 17 + after 'deploy:migrations', 'deploy:cleanup' 18 + after 'deploy:update_code', 'deploy:link_shared' 19 + 20 + namespace :deploy do 21 + task :restart, :roles => :web do 22 + run "touch #{current_path}/tmp/restart.txt" 23 + end 24 + 25 + task :bundle_install do 26 + run "cd #{release_path} && bundle config set --local deployment 'true'" 27 + run "cd #{release_path} && bundle config set --local path '#{shared_path}/bundle'" 28 + run "cd #{release_path} && bundle config set --local without 'development test'" 29 + run "cd #{release_path} && bundle install --quiet" 30 + end 31 + 32 + task :link_shared do 33 + run "ln -s #{shared_path}/sources.yml #{release_path}/config/sources.yml" 34 + end 35 + end