How to integrate wordpress blog into my rails web app at the same domain? [closed] - ruby-on-rails

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I have an existing Rails web application at www.xyz.com. I bought the domain using namecheap and have deployed it using Heroku. I want to integrate a Wordpress blog at www.xyz.com/blog. I've never done this before and am confused how to go about doing this; should I integrate Wordpress using a wordpress gem in my rails app and deploy it or do I have to do something with Namecheap to integrate? I'm super confused and am not sure where to start. Any advice?

If you deploy a Rails application at Heroku, there is no way you can integrate a WordPress blog under the same hostname.
The major problem is that the Rails app is written in Ruby and WordPress is written in PHP. Ruby and PHP are two different languages.
My recommendation is to use a separate hostname. You can have your application hosted at Heroku under (www.)example.com, and host your WordPress blog elsewhere under blog.example.com.
This is quite easy and by far the best solution.
If can technically run a WordPress blog and a Rails app under the same hostname (I know for sure because I'm exactly doing the same for my personal site), but it involves some system administration knowledge (and I'm not sure you may have the necessary skills to perform such task) and you will need a custom server.
For your information, my configuration is based on Nginx as a front-end proxy. If the request comes a /blog location, I proxy it to the PHP interpreter. Otherwise, I proxy it to the Rails application interpreter (puma or unicorn).
This cannot be accomplished using Heroku, unless (but I haven't tried it) you use a custom build pack.

Related

Setting up Ruby on Rails [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
How do you go about setting up a Rails application on a standard web server? I want to just throw my application into cgi-bin and run it, but Rails clearly wants to control the file system and how file accesses are routed. So it's all very well working on my application in its little sandbox, but how do you actually close the gap and serve an application?
You need to Create Ruby on Rails app first then you can deploy it on Heroku. Here is very nice reference link from scratch..
https://devcenter.heroku.com/articles/getting-started-with-rails4
Hope this will help you..to create Rails Demo App and all steps of deploying on Heroku.
Deploy
There are a plethora of tutorials on how to deploy rails applications correctly.
Most notable (we've recently used) are:
DigitalOcean - Deploying to a VPS
GoRails - Deploying on Ubuntu with Nginx
Heroku - Deploying to Heroku with GIT
This will give you information on how to deploy to either the Heroku platform, or one of the many VPS type hosting providers out there. We use Rackspace, and the DigitalOcean & GoRails tutorials were invaluable when setting up our server again
Rails
Although I'm not totally in tune with how Rails runs on file-system level, you have to appreciate that Rails runs with a multitude of dependencies & can also be compiled at run time
Processing requests in this way has to be handled by more than just the standard hosting software, and indeed, the most recommended solution from the Rails core team is Phusion Passenger

Trouble launching my first Ruby on Rails application? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
I have taken the entire set of code and put it on my server, but it doesn't work. The pages do not load following the URLs.
I want to launch my Ruby on Rails application on a hosted service like mochahost or godaddy.
Thanks
You have just copied all the files over and that's it? I'm sorry to tell you this but this is not PHP :-)
Rails uses an application server to handle requests. Your file structure is irrelevant to the request (that's what the config/routes.rb is for).
I guess you take a look at this page: RubyOnRails deployment
Further reading: Application server # wikipedia
If you are totally new to rails, I highly suggest using a service like Heroku over traditional shared hosting. I am not too far ahead of you in learning rails but I can say with 100% certainty that I would not want the added hassle of managing my own rails server environment at this stage.
Check out Michael Hartl's book if you haven't already. http://rails-4-0.railstutorial.org/book It will walk you through a Heroku setup and deployment.
Also, did I mention Heroku is free until you scale up? Perfect for learning!

How to host a rails web application [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I have developed a nifty web application using rails and would like to host it. Unfortunately I'm unsure how i can cheaply host my application. I'm aware of various deployment tools like capistrano and I've also herd of Heroku. I presume these tools help in hosting.
However can anyone provide me the steps to host a web app in details esp using rails and what all options i can have for doing it?
EDIT
It has been pointed out to me that a link in my answer does no longer work. Which is not that surprising, since this is a 3 year old answer.
Because It seems like people are still stumbling on this answer, I would like to redirect people to this page:
https://gorails.com/deploy/ubuntu/16.04
It should have all the information you need to deploy a rails application.
End EDIT
I recommend that you check out
http://rubyonrails.org/deploy
to start with.
And also
http://www.cloudfoundry.com/
and
https://www.engineyard.com/
are both great hosts for any rails application, and they also have some pretty easy to follow step-by-step tutorials on how to do so.
As Leito mentioned Heroku in his answer, I would like to point you to
http://www.codeschool.com/code_tv/heroku
If you choose Heroku as your host, you could check out that video as it shows you how to deploy a simple rails application.
Heroku is the easiest in my opinion, I recommend you start here https://devcenter.heroku.com/articles/rails3
Heroku is more an application hosting and uses git to deploy your app, so no need of capistrano or similar tools.

Hosting for a Ruby on Rails application [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I am a Ruby on Rails developer and I am planning to purchase an hosting space in order to publish my web application (I'm developing a small Social Network). This is my first time that I try to deploy a Ruby on Rails application, so I am not expert on the matter.
I would like to find a "compromise" between performance and price. I think that for now a shared server it is enough (maybe) for my needs (suggestions are appreciated...).
In localhost I am using
Ruby on Rails 3.0.9
ruby-1.9.2-p136
Apache
Phusion Passenger
MySql
so the hosting server should satisfy the above requisites.
More: in my application I am using the Paperclip gem so another requisite should be Image-Magick.
What hosting service do you advice for my needs? What should I have to care when I purchase a hosting space for RoR? And, most importantly, which hosting service do you advice??
P.S.: if you need some other information just ask and I will update the question.
Even though this question is slightly off-topic on SO, I'd recommend you look at Heroku:
http://www.heroku.com/
Hosting a Rails app can't be easier and you can start with the free plan and then scale up as needed.

Which Linux distro for Ruby [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
What is the best linux distro for deploying ruby on rails web apps on a production server.
The web app will use advanced cache features, graph creations and lots of other cool features.
Please advise.
I like Ubuntu Server mostly cause it's well supported and readily available on almost all cloud services.
Fedora 14, No Doubt... Actually there's a tutorial on how to setup a Complete RoR Development Enviroment in the Blog where I write... The post is in Spanish but I believe you'll understand terminal commands quite good:
http://xenodesystems.blogspot.com/2011/01/instalar-ruby-on-rails-en-linux-con.html
Also there's a Gadget on the Blog to translate posts into different Languages...
Good Luck!
Taking account that Rails relies substantially in console commands, any Unix based distribution will be good. My advice: use whatever you feel comfortable with. If that's not the case and you want to learn a suitable distro for Rails, I would recommend Fedora as Jmlevick suggested.
For Rails,it usually offers latest Ruby version directly in the distribution. Also the whole Rails is packaged as RPMs, making it easier to instal. You just need to download the RPM version of the gem with pre-compiled extension and you're done.
If you want to see the docs about Ruby or Rails directly from Fedora check out the links.
Also to take into account, Fedora is a friendly user distro, easy to install and it has a huge community, so in case of a problem, just do some research. In case that you have Mac, that would be also fine.

Resources