Skip to content
No description or website provided.
Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
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
  • git clone on server, install rvm, ruby, javascript runtime, rake db:create, rake db:schema:load
  • put the load rvm script 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 = '$HOME/app_name'
UNICORN_PID_PATH = 'tmp/pids/unicorn.pid'

usage

go to the root directory of your rails app

$ ldep (options)

command line options

  • -nc don't precompile assets
Something went wrong with that request. Please try again.