我问这个问题是因为我一直用于其他应用程序的部署步骤似乎不适用于 spree 应用程序。
如果我遗漏了什么,请建议我:
在 Development Mac 上,我运行以下命令,我可以看到商店在 localhost:3000 上运行:
brew install imagemagick
$ gem install rmagick
$ rails new store
将狂欢放入 gem 文件中
$捆绑
$ rails g spree:site $ rake db:bootstrap
使用 capistrano 将应用程序部署到http://passionate4.net/ 我可以执行以下命令:
$ cap deploy:setup
$ cap deploy:cold
$ cap deploy
如果您查看http://passionate4.net/,我会遇到一些错误。
这是 production.log 的样子
ubuntu@ip-10-166-185-18:/var/www/spree_store/current/log$ cat production.log
Migrating to CreatePosts (20111113203521)
根据上面的日志信息,当我查看 mysql 数据库时,我找不到 Create Posts 表。
我该如何解决这个问题?
仅供参考:它在本地主机上完美运行。