Skip to content

Instantly share code, notes, and snippets.

@developer88
Last active June 21, 2018 13:05

Revisions

  1. developer88 revised this gist Jun 9, 2016. No changes.
  2. developer88 revised this gist May 1, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion deploy.rb
    Original file line number Diff line number Diff line change
    @@ -10,7 +10,7 @@

    # 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', 'download', 'files', 'images/upload_icons']
    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.
  3. developer88 created this gist Apr 2, 2015.
    29 changes: 29 additions & 0 deletions deploy.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,29 @@
    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', 'download', '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