No description or website provided.
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
test
.document
.gitignore
Gemfile
Gemfile.lock
LICENSE.txt
Rakefile
VERSION
lihan-deploy.gemspec
readme.md

readme.md

lihan-deploy

  • put in gemfile
gem 'lihan-deploy', git: 'git://github.com/lihanli/lihan-deploy.git'
  • git clone on server, install rvm, ruby, rake db:create, rake db:schema:load, rake db:seed (if necessary)
  • load rvm at the beginning of .bashrc
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
  • create a file called config/lihan-deploy.rb in your rails project
USERNAME = 'ubuntu'
HOST = 'foo.com'
PATH = '/path/to/app'
UNICORN_PID_PATH = 'tmp/pids/unicorn.pid' # relative to your app's path

usage

go to the root directory of your rails app

$ bundle exec ldep (options)

command line options

  • -nc don't precompile assets