require 'mina/git'
# Basic settings:
# domain - The hostname to SSH to.
# deploy_to - Path to deploy into.
# repository - Git repo to clone from. (needed by mina/git )
# branch - Branch name to deploy. (needed by mina/git )
set :user, 'deploy'
set :domain, '
antesky.com'
set :deploy_to, '/home/deploy/www/AceAttorney'
set :repository, 'git@git.coding.net:plamed/AceAttorney.git'
set :branch, 'master'
set :shared_paths, ['.env', 'storage', 'vendor', 'node_modules', 'public/uploads']
task :environment do
end
# Put any custom mkdir's in here for when `mina setup` is ran.
# For Rails apps, we'll make some of the shared paths that are shared between
# all releases.
task :setup => :environment do
end
desc "Deploys the current version to the server."
task :deploy => :environment do
to :before_hook do
# Put things to run locally before ssh
end
deploy do
# Put things that will set up an empty directory into a fully set-up
# instance of your project.
invoke :'git:clone'
invoke :'deploy:link_shared_paths'
queue 'composer install'
queue 'php artisan migrate'
queue 'php artisan optimize'
queue 'npm install'
queue 'gulp --production'
invoke :'deploy:cleanup'
to :launch do
queue 'composer dumpautoload'
end
end
end