开发者

Heroku App with a Wordpress Blog

开发者 https://www.devze.com 2023-04-05 20:09 出处:网络
I recently discovered that Heroku now allows PHP which means that a wordpress blog can be hosted on it. I also found this project template: https://github.com/mhoof开发者_运维问答man/wordpress-heroku

I recently discovered that Heroku now allows PHP which means that a wordpress blog can be hosted on it. I also found this project template: https://github.com/mhoof开发者_运维问答man/wordpress-heroku

I have a ruby on rails app which is to be hosted on heroku with a domain www.mysite.com, and in that app, i need a way for www.mysite.com/blog to show the wordpress blog.

Can someone help me out, with details on how I can do this?


Whilst I've not used the new PHP platform I don't think what you're asking for is going to be possible.

When you deploy an application to Heroku it detects the type of application during the push process and sets up the application accordingly, Heroku use Apache to host PHP as you can see from the output in this post http://tjstein.com/2011/09/running-wordpress-on-heroku-and-amazon-rds/ - there's not been any mention of mixing platforms in a single application yet so would imagine that it's not supported.

The nearest you'd get is hosting your site and your blog in two seperate applications with the blog on blog.mysite.com and then put a redirect on www.mysite.com/blog to the blog.mysite.com url.


Im Still working on this

the closest to getting a solution is using the reverse proxy gem

see the answer here:

How can I use a subdirectory instead of a subdomain?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号