答案是:
heroku restart -a app_name
# The -a is the same as --app
Easily aliased with alias hra='heroku restart --app '
Which you can make a permanent alias by adding it to your .bashrc or .bash_aliases file as described at:
https://askubuntu.com/questions/17536/how-do-i-create-a-permanent-bash-alias and
Creating permanent executable aliases
Then you can just type hra app_name
您可以通过以下方式重新启动特定的远程设备,例如"暂存":
heroku restart -a app_name -r remote_name
或者,如果您在rails应用程序的根目录中,您可以只键入
heroku restart
重新启动该应用程序,您可以使用
alias hr='heroku restart'`
您可以将这些别名放在.bashrc
文件中,或者(首选)放在从.bashrc
调用的.bash_aliases
文件中