简体   繁体   中英

How to host wordpress site on mian domain and rails site a subdomain

I currently have a wordpress site that is hosted with wpengine at mydomain.com. The current wordpress site is a crowdfunding platform but now we are adding in a grants component. I would like to keep the crowdfunding fully functional but then also host the grants features at grants.wpengine.com using rails on heroku. Eventually I plan on merging the crowdfunding into the rails grants app but in the meantime I want both co-exist. Is this even possible and how would I go about doing so? Thanks!

I've built setups like this before, and typically what I've done is this:

Setup hosting for the wordpress website on Heroku or another service provider, and point your main domain to that IP address via an A Record.

Setup your Heroku Rails app on Heroku, they assign you a *.herokuapp.com domain. Create an A record for your subdomain, and point it to *.herokuapp.com .

You now have your website functioning on one host and your Rails app on a sub domain running 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