[英]how to deploy a php app with mysql to heroku?
I have a small php app that uses mySql for the database, I wish to deploy the app on heroku using the clearDB add on, But I am not sure how to do it, please help.我有一个使用 mySql 作为数据库的小型 php 应用程序,我希望使用 clearDB 插件在 heroku 上部署该应用程序,但我不知道该怎么做,请帮忙。 I am presently using MAMP server locally which has MySQL installed.
我目前在本地使用安装了 MySQL 的 MAMP 服务器。
If you are clueless about where to start, I suggest going through Heroku PHP introduction .如果您不知道从哪里开始,我建议您阅读Heroku PHP 介绍。 You'd basically need to adapt the
Provision a database
item, using your MySQL addon instead of the one used on the example.您基本上需要使用您的 MySQL 插件而不是示例中使用的插件来调整
Provision a database
项目。
php and composer installed in your local machine . php 和 composer 安装在你的本地机器上。 Then install Heroku Command Line Interface .
然后安装 Heroku 命令行界面。 once your done with this you can log in to heroku in ur local machine and you can create your heroku app and deploy should not be a problem .
完成此操作后,您可以在您的本地计算机上登录到 heroku,并且您可以创建您的 heroku 应用程序并且部署应该不成问题。
I have a small php app that uses mySql for the database, I wish to deploy the app on heroku using the clearDB add on, But I am not sure how to do it, please help.我有一个使用mySql作为数据库的小型php应用程序,我希望使用clearDB addon在heroku上部署该应用程序,但是我不确定该怎么做,请帮忙。 I am presently using MAMP server locally which has MySQL installed.
我目前在本地使用已安装MySQL的MAMP服务器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.