Comments (7)
39f351e
70f04ab
61b77e3
ee90da6
from onestep.
Now the capistrano works b4ebfd2
from onestep.
@billie66 最好把你参考的资料也在这里和大家分享一下
from onestep.
http://railscasts.com/episodes/133-capistrano-tasks-revised
from onestep.
# make sure ruby bundler nginx unicorn are installed on server
cap deploy:setup # do this before `cap deploy` to create some dirs on server
cap deploy # run :defualt of namespace `deploy`
# if start unicorn master failed, goto server and kill the current master
# and sudo rm /tmp/unicorn.onestep.sock
# I needed to do this, because I have another user(Peter) that has a unicorn instance running
# I found this error by check the log/unicorn.log
from onestep.
update the code and do
cap deploy
only
now goto server and I check the bundle install; rake db:migrate
is not done.
check cap -T
, and
cd `bundle show capistrano`; xxx migrate
and I know I can use cap deploy:migrate
to do the db:migrate
for bundle install
, I need to find another task, maybe by
cd `bundel show bundler`; xxx install
Update: just run cap deploy
again, by the output, I see actually all of the below will be done:
bundle install
assets:precompile
db:migrate
resart unicorn
all the symlinks and dirs
Update: I find I still need to run cap deploy:migrate
before cap deploy
if I have new migration, otherwise it won't work
and
"cap deploy:migrate" + "cap deploy" = "cap deploy:migrations"
and cap deploy:migrations
is better, since cap deploy:migrate
will then be put in proper step.
from onestep.
Why use capistrano?
For individual: automize things
For team: better collaboration, since everything you do is written done in one place.
from onestep.
Related Issues (20)
- js-kingdom
- 老用户的观看权限 HOT 5
- markdown 和 code highlight HOT 2
- Layout 内容太多,造成 react-static 编译输出的 main.js 也太大 HOT 5
- 代币激励机制 HOT 1
- course poster HOT 1
- 考察 Gatsby 的能力 HOT 2
- petercoin 课程新视频上传了 HOT 1
- react-go 课程视频已经上传了 HOT 3
- 删除登录页面上的信息
- 制作管理员后台,可以看到注册用户数量
- 美化用户主页
- 修改网站 Name 和 Desc HOT 2
- 修改 slogan
- 撤销过期时间 HOT 1
- 请问,好奇猫网站制作用到的框架和技术?谢谢 HOT 2
- 请问您2013年集成的支付宝个人即时到账接口还能用吗 HOT 2
- create-react-app 重写应用
- 首页设计
- 实现注册功能
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onestep.