1

I'm using heroku for a sort time and I have some doubts on what exactly do 2 'commands'

The first is rake, I've seen here some people use it and some others, use the same instructions without rake, so I'd like to know if there's any difference in using rake or not

The other is more simple: heroku restart Does this only affect the database or it also affect the code? If it only affects the database, what happens to the data? Should I use it, or it's an emergency command?

All info explained here and related to these instructions will be really helpful

Thanks!

4

1 回答 1

2

rake是一个已弃用的电话。

Heroku ❯ heroku help rake
Alias: rake redirects to run:rake
Usage: heroku run:rake COMMAND

 WARNING: `heroku run:rake` has been deprecated. Please use `heroku run rake` instead."

基本上它是/曾经是运行rakeRails 应用程序调用的快捷方式。

你应该heroku run rake <task>改用。

heroku restart重新启动应用程序进程,这里有更详细的解释:https ://devcenter.heroku.com/articles/process-model

heroku help restart了解更多信息。

heroku restart不会重新启动您的数据库。

于 2013-04-09T20:54:23.300 回答