简体   繁体   中英

Deploy PHP website on Heroku

I have got heroku up and running just now. Not sure how to use the PostgreSQL and how to deploy my website though. It is a few php files. But they php files don't open they are just blank so I guess it is never leaving the index.php

Do i need to include or list all my php files in the default index.php file?

Also with the database i created one and it is in the dashboard listed under apps so now can I connect to it normally or is there more stuff to configure?

Would love some video tutorials showing how to deploy small database driven websites written in PHP to heroku.

Any help is great! Cheers guys :)

If you want to use postgresql database with your website on Heroku, you need this add-on . To set it up read this https://devcenter.heroku.com/articles/heroku-postgresql post.

As for PHP, you seem new to it. To include a file you need to use either require or include .

You can look at this video , for basic deployment of PHP on Heroku.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM