Skip to content

Instantly share code, notes, and snippets.

View mjason's full-sized avatar

Mj mjason

  • South China University of Technology
  • Guangzhou, China
  • 00:03 (UTC +08:00)
View GitHub Profile
# coding: utf-8
gsub_file "Gemfile", /https:/, "http:"
gem 'devise'
gem "cancan", "~> 1.6.10"
gem "mongoid", git: "https://github.com/mongoid/mongoid.git", ref: "85e146637503522939b3a6b942c84d1bbc55c00a"
gem 'carrierwave', '0.6.2'
gem 'mini_magick','3.3', require: false
@mjason
mjason / deploy.rb
Created May 29, 2013 03:28
mina部署脚本
require 'mina/bundler'
require 'mina/rails'
require 'mina/git'
require 'mina/rvm' # for rvm support. (http://rvm.io)
set :domain, 'xxx.xxx.xxx'
set :deploy_to, '/home/xxxx/xxxx'
set :repository, 'git@xxxx'
set :branch, 'master'
set :shared_paths, ['config/database.yml', 'log']