运行 rails capistrano 部署后的应用程序

run rails applicaton after capistrano deployment

部署 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 提供的任务?

如有任何帮助,我们将不胜感激!!!

Capistrano 接收旨在 运行 在本地系统上。 运行 在本地。

我发现我的错误。当我关注 Railscasts Capistrano screencasts, Whosebug Capistrano Tags and deploying-rails-apps-to-a-vps-with-capistrano-v3 时。

As all cap tasks run locally.

cap production deploy:migrate # Worked for me

感谢@maxd!!!