Skip to content

Instantly share code, notes, and snippets.

@developer88
Last active June 21, 2018 13:05
Show Gist options
  • Save developer88/9b318fde33c877472491 to your computer and use it in GitHub Desktop.
Save developer88/9b318fde33c877472491 to your computer and use it in GitHub Desktop.
Deploy phpBB with Mina
require 'mina/bundler'
require 'mina/git'
set :application, "forum"
set :domain, '%SERVERNAME%'
set :deploy_to, "%PATH-TO-APPLICATION%"
set :repository, '%REPOSITORY-URL%.git'
set :branch, 'master'
set :login, "%LOGIN%"
# Manually create these paths in shared/ (eg: shared/config/database.yml) in your server.
# They will be linked in the 'deploy:link_shared_paths' step.
set :shared_paths, ['cache', 'files', 'images/upload_icons']
set :user, '%USERNAME%' # Username in the server to SSH to.
set :forward_agent, true # SSH forward_agent.
set :keep_releases, 5
set :current_path, 'htdocs'
desc "Deploys the current version to the server."
task :deploy => :environment do
deploy do
invoke :'git:clone'
invoke :'deploy:link_shared_paths'
invoke :'deploy:cleanup'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment