Skip to content

Instantly share code, notes, and snippets.

@rynkis
Last active July 16, 2018 08:24
Show Gist options
  • Save rynkis/29619d5bd323be6d254fcd279cbbebc7 to your computer and use it in GitHub Desktop.
Save rynkis/29619d5bd323be6d254fcd279cbbebc7 to your computer and use it in GitHub Desktop.
借把伞项目部署简单流程

借把伞项目部署简单流程

安装 RVM

gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
curl -sSL https://get.rvm.io | bash -s stable

安装 Ruby

rvm install ruby-2.4.1
ruby -v

修改 gem 源

https://ruby-china.org/wiki/rvm-guide
https://gems.ruby-china.org/

以上是安装 ruby 环境,最后参考 ruby-china 链接修改 ruby gem 源为墙内源,如果有翻墙条件则不需要

克隆代码

git clone git@git.theflyhigh.cn:umbrella/umbrella.git

安装 rails 等依赖

cd path/to/umbrella
bundle install

重启生产环境上的项目实例

cap production deploy:restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment