Giter Site home page Giter Site logo

capistrano about onestep HOT 7 CLOSED

happypeter avatar happypeter commented on June 8, 2024
capistrano

from onestep.

Comments (7)

happypeter avatar happypeter commented on June 8, 2024

39f351e
70f04ab
61b77e3
ee90da6

from onestep.

billie66 avatar billie66 commented on June 8, 2024

Now the capistrano works b4ebfd2

from onestep.

happypeter avatar happypeter commented on June 8, 2024

@billie66 最好把你参考的资料也在这里和大家分享一下

from onestep.

happypeter avatar happypeter commented on June 8, 2024

http://railscasts.com/episodes/133-capistrano-tasks-revised

from onestep.

happypeter avatar happypeter commented on June 8, 2024
# 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.

happypeter avatar happypeter commented on June 8, 2024

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.

happypeter avatar happypeter commented on June 8, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.