Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

deployment on new server

  • Loading branch information...
commit e7f0c0e29b8637d64a15150ae185896af323d491 1 parent dbd6464
@LeipeLeon authored
Showing with 26 additions and 5 deletions.
  1. +2 −0  Gemfile
  2. +15 −0 Gemfile.lock
  3. +9 −5 config/deploy.rb
View
2  Gemfile
@@ -5,3 +5,5 @@ gem "activerecord"
# gem "uri"
gem "haml"
gem "mysql"
+
+gem "capistrano"
View
15 Gemfile.lock
@@ -14,10 +14,24 @@ GEM
multi_json (~> 1.0)
arel (3.0.0)
builder (3.0.0)
+ capistrano (2.8.0)
+ highline
+ net-scp (>= 1.0.0)
+ net-sftp (>= 2.0.0)
+ net-ssh (>= 2.0.14)
+ net-ssh-gateway (>= 1.1.0)
haml (3.1.4)
+ highline (1.6.2)
i18n (0.6.0)
multi_json (1.0.4)
mysql (2.8.1)
+ net-scp (1.0.4)
+ net-ssh (>= 1.99.1)
+ net-sftp (2.0.5)
+ net-ssh (>= 2.0.9)
+ net-ssh (2.2.1)
+ net-ssh-gateway (1.1.0)
+ net-ssh (>= 1.99.1)
rack (1.4.1)
rack-protection (1.2.0)
rack
@@ -33,6 +47,7 @@ PLATFORMS
DEPENDENCIES
activerecord
+ capistrano
haml
mysql
sinatra
View
14 config/deploy.rb
@@ -1,5 +1,8 @@
+require "bundler/capistrano"
+
+set :environment, 'production'
set :application, "snip"
-set :user, 'berl'
+set :user, 'bitnami'
set :use_sudo, false
set :scm, :git
@@ -7,19 +10,20 @@
set :repository, "git@github.com:LeipeLeon/snip.git"
set :repository_cache, "git_master"
set :deploy_via, :remote_cache
-set :deploy_to, "/home/#{user}/apps/#{application}"
+set :deploy_to, "/opt/bitnami/projects/#{application}"
set :scm_verbose, :true
set :use_sudo, false
set :keep_releases, 3
-role :app, "web"
-role :web, "web"
-role :db, "web", :primary => true
+role :app, "bwh"
+role :web, "bwh"
+role :db, "bwh", :primary => true
set :runner, user
set :admin_runner, user
+
namespace :deploy do
desc "Restarting mod_rails with restart.txt"
task :restart, :roles => :app, :except => { :no_release => true } do
Please sign in to comment.
Something went wrong with that request. Please try again.