Permalink
Browse files

testing text

  • Loading branch information...
1 parent 60e79d7 commit 6ebd67348c2564a219f9f5c0c0504e36c0953412 @jexchan committed Mar 11, 2013
Showing with 7 additions and 8 deletions.
  1. +1 −1 app/views/layouts/application.html.haml
  2. +6 −7 config/deploy.rb
@@ -2,7 +2,7 @@
%html{ :lang => "en", 'ng-app' => 'openClass'}
%head
%meta{ :charset => "utf-8" }
- %title 开放课堂 Capistrano
+ %title 开放课堂 Capistrano New
%meta{ :name => "viewport", :content => "width=device-width, initial-scale=1.0" }
= csrf_meta_tags
View
@@ -1,10 +1,11 @@
require 'bundler/capistrano'
require "rvm/capistrano"
-
+# Development server info
+set :domain "newclass.org"
set :rvm_ruby_string, 'ruby-1.9.3-p286@global'
set :rvm_type, :system
-set :application, "newclass.org"
+set :application, "newclass"
set :scm, :git
set :repository, "git@github.com:jexchan/re-education.git"
set :branch, 'master'
@@ -18,20 +19,18 @@
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none`
set :user, "root"
set :group, "root"
-set :deploy_to, "/var/www/newclass.org"
+set :deploy_to, "/var/www/#{domain}"
# set :use_sudo, false
set :deploy_via, :remote_cache
# set :deploy_via, :copy
# set :deploy_strategy, :export
-set :keep_release, 5
+set :keep_release, 3
default_run_options[:pty] = true
ssh_options[:forward_agent] = true
-role :web, "42.121.105.39" # Your HTTP server, Apache/etc
-role :app, "42.121.105.39" # Your HTTP server, Apache/etc
-role :db, "42.121.105.39" # Your HTTP server, Apache/etc
+server domain, :app, :web, :db, :primary => true
# if you want to clean up old releases on each deploy uncomment this:
# after "deploy:restart", "deploy:cleanup"

0 comments on commit 6ebd673

Please sign in to comment.