如何将.php文件上传到Heroku [英] How to upload a .php file to Heroku

查看:99
本文介绍了如何将.php文件上传到Heroku的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要上传一个.php文件到我的Heroku网站。



这是怎么用终端完成的?我登录到终端,并可以看到我的应用程序等...

感谢您的帮助

解决方案

如果您需要通过终端在您的Heroku应用程序上传文件,您需要跟踪它并使用 Git 来提交。 / p>

安装并配置heroku工具栏: https://devcenter.heroku.com/articles/quickstart



然后创建您的应用程序,开始跟踪您的文件并将它们推送到heroku:

  heroku创建myapp 
git init
git add。
git commit -m'初始提交'
git push heroku master


I need to upload a .php file to my Heroku site.

How is this done using Terminal? I'm logged in vis Terminal and can see my app etc...

thanks for any help

解决方案

If you need to upload a file on your Heroku app through the terminal, you need to track it and commit it with Git.

Install and configure the heroku toolbelt if not already done: https://devcenter.heroku.com/articles/quickstart

And then just create your app, start tracking your files and push them to heroku:

heroku create myapp
git init
git add .
git commit -m 'Initial commit'
git push heroku master

这篇关于如何将.php文件上传到Heroku的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆