重启后创建 sample,Heroku 的一些命令不能用,不知道如何结局?

vagrant@homestead:~/code/sample$ heroku rename simple
 ›   Error: Missing required flag:
 ›     -a, --app APP  app to run command against
 ›   See more help with --help

重启后创建sample,heroku 的一些命令不能用,不知道如何解决

《L04 微信小程序从零到发布》
从小程序个人账户申请开始,带你一步步进行开发一个微信小程序,直到提交微信控制台上线发布。
《G01 Go 实战入门》
从零开始带你一步步开发一个 Go 博客项目,让你在最短的时间内学会使用 Go 进行编码。项目结构很大程度上参考了 Laravel。
最佳答案

@JeffLi 多谢帮我解答

vagrant@homestead:~/code/sample$ heroku apps --help
list your apps

USAGE
  $ heroku apps

OPTIONS
  -A, --all          include apps in all teams
  -p, --personal     list apps in personal account when a default team is set
  -s, --space=space  filter by space
  -t, --team=team    team to use
  --json             output in json format

EXAMPLES
  $ heroku apps
  === My Apps
  example
  example2

  === Collaborated Apps
  theirapp   other@owner.name

终于查到了命令,因为同时又两个项目在运行 所以在进行操作时候加上--app=<new appname>参数,希望遇到同样问题的小伙伴可以看到并顺利解决此问题

5年前 评论
讨论数量: 5
你看我吊吗啊

不是heroku命令不能用,日志显示你的命令不完整 Error: Missing required flag:

5年前 评论

@JeffLi 可有解决的方法?我检查了一下前面的命令,跟教程的一样
tips:重启homestead时导致死机,我强制重启了物理机,是不是对虚拟机产生了一些破坏

5年前 评论
你看我吊吗啊

@geekerinn 服务器层面的我不懂~ 我老同事@Yusure 说这样操作会影响虚拟机

5年前 评论
你看我吊吗啊
5年前 评论

@JeffLi 多谢帮我解答

vagrant@homestead:~/code/sample$ heroku apps --help
list your apps

USAGE
  $ heroku apps

OPTIONS
  -A, --all          include apps in all teams
  -p, --personal     list apps in personal account when a default team is set
  -s, --space=space  filter by space
  -t, --team=team    team to use
  --json             output in json format

EXAMPLES
  $ heroku apps
  === My Apps
  example
  example2

  === Collaborated Apps
  theirapp   other@owner.name

终于查到了命令,因为同时又两个项目在运行 所以在进行操作时候加上--app=<new appname>参数,希望遇到同样问题的小伙伴可以看到并顺利解决此问题

5年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!