Question

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

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

Subscribe
Share

Thanks for your reply! I apologize for my slow reply.

I want something relatively simple.

Server configuration: Same, but could be distributed HTTP Server: NGinx Database: PostGreSQL

It largely depends on your architecture. What HTTP server are you currently using for your rails/wordpress applications? Database? Is all this going to reside on the same server or are you going for a distributed setup? Depending on your technology choices, this could either be a relatively simple setup or a complex one.


Submit an 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.