doucaishi0077 2016-10-16 18:26
浏览 30
已采纳

如何从命令行处理heroku上的多个php应用程序?

I am using one app named, sms-hw in which I have worked before.

I recently created another app protected-peak, Immediately after creating this app, i tried pushing my work with git push hero master I got a statement saying that

saying it uploaded the work to my old app sms-hw

I actually wanted to upload it to protected peak

how to manage many apps like these, can i add the name somewhere, so as to avoid the confusion

  • 写回答

1条回答 默认 最新

  • dregduc63699 2016-10-16 20:11
    关注

    Assuming you have Heroku toolbelt installed and you are already logged in:

    On the repository you want to deploy to your new app use:

    heroku git:remote --app protected-peak

    You specify the app name when adding the heroku git remote now that you have more than one app. The command above will set the heroku remote to your new app. So after running it just use:

    git push heroku master

    More information on Heroku deploy with git here.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 乌班图ip地址配置及远程SSH
  • ¥15 怎么让点阵屏显示静态爱心,用keiluVision5写出让点阵屏显示静态爱心的代码,越快越好
  • ¥15 PSPICE制作一个加法器
  • ¥15 javaweb项目无法正常跳转
  • ¥15 VMBox虚拟机无法访问
  • ¥15 skd显示找不到头文件
  • ¥15 机器视觉中图片中长度与真实长度的关系
  • ¥15 fastreport table 怎么只让每页的最下面和最顶部有横线
  • ¥15 java 的protected权限 ,问题在注释里
  • ¥15 这个是哪里有问题啊?