Report this

What is the reason for this report?

How do I configure a droplet to make Ruby on Rails and WordPress co-exist?

Posted on December 6, 2015

Hi.

I’d like to launch a Ruby on Rails Website with WordPress blog on the same domain. Ruby on Rails will occupy the top-level domain (i.e. <domain_name>.com) while WordPress will reside at a subdomain (i.e. blog.<domain_name>) or subdirectory (i.e. <domain_name>/blog)

How do I configure a VPS / droplet to make this deployment work? Which server specs do I choose?

Thanks



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I can’t give you an accurate answer (but 1GB should be enough to start).

Version 1

In NGINX you just need to create two Server Blocks.

https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-server-blocks-virtual-hosts-on-ubuntu-14-04-lts

Version 2

Download WordPress and rename the folder to blog.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.