mirror of https://github.com/mastodon/mastodon
				
				
				
			Add capistrano to development environment
							parent
							
								
									404d2050d3
								
							
						
					
					
						commit
						a2a85e8549
					
				@ -0,0 +1,13 @@
 | 
				
			|||||||
 | 
					require 'capistrano/setup'
 | 
				
			||||||
 | 
					require 'capistrano/deploy'
 | 
				
			||||||
 | 
					require 'capistrano/scm/git'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					install_plugin Capistrano::SCM::Git
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					require 'capistrano/rbenv'
 | 
				
			||||||
 | 
					require 'capistrano/bundler'
 | 
				
			||||||
 | 
					require 'capistrano/yarn'
 | 
				
			||||||
 | 
					require 'capistrano/rails/assets'
 | 
				
			||||||
 | 
					require 'capistrano/rails/migrations'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }
 | 
				
			||||||
@ -0,0 +1,11 @@
 | 
				
			|||||||
 | 
					lock '3.7.2'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					set :application, 'mastodon'
 | 
				
			||||||
 | 
					set :repo_url, 'https://github.com/tootsuite/mastodon.git'
 | 
				
			||||||
 | 
					set :branch, 'master'
 | 
				
			||||||
 | 
					set :rbenv_type, :user
 | 
				
			||||||
 | 
					set :rbenv_ruby, File.read('.ruby-version').strip
 | 
				
			||||||
 | 
					set :migration_role, :app
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					append :linked_files, '.env.production'
 | 
				
			||||||
 | 
					append :linked_dirs, 'vendor/bundle', 'node_modules', 'public/system'
 | 
				
			||||||
					Loading…
					
					
				
		Reference in New Issue