【发布时间】:2015-03-02 08:56:54
【问题描述】:
第一次部署 Rails 应用抛出 Capistrano:我在另一台机器(服务器)上部署了 Rails 应用
rails 应用的文件结构 ## this is my server
akshay@akshay:/var/www/model_demo$ ls
current releases repo revisions.log shared
cap -T ## showing a lots of rake task
喜欢
cap deploy:migrate # Runs rake db:migrate if migrations are set
如果我运行这个任务,它就不起作用了
Stage not set, please call something such as `cap production deploy`, where production is a stage you have defined.
但是当我运行时
cap production deploy # It works
仅在所有列出的任务中cap production deploy
1:到底发生了什么?
2:如何运行 cap 提供的 rake 任务?
任何帮助将不胜感激!!!
【问题讨论】:
标签: ruby-on-rails ruby capistrano capistrano3