Question

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

Posted December 6, 2015 5.9k views
Ruby on RailsNginxWordPressRubyDeployment

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

2 comments
  • 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.

  • 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

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.

×
1 answer

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.

by Justin Ellingwood
Nginx is an incredibly powerful web server and reverse proxy. In this guide, we'll discuss how to set up server blocks on Ubuntu 14.04 in order to server multiple domains from a single server.
Submit an Answer