Reputation: 43
I have Rails application deployed on my home root directory of a domain and symlinked with my public_html/applicationname.com/. I wanted to install wordpress in applicationname.com/blog path. But rails ain`t allowing me to do so. I have tried a subdomain as well, but still, the routes are being handled by Rails.
What would be the best solution to deploy a blog along with Rails application ?
I can only think of .htaccess modification.
Upvotes: 1
Views: 1281
Reputation: 9937
Check the post :
http://joomlist.com/2011/10/php-in-subdirectory-of-rubyonrails/. it worked using passenger with apache.
Upvotes: 0
Reputation: 659
This article may be useful to anyone looking to solve this problem: http://www.spotscore.com/blog/2009/11/22/how-to-host-wordpress-and-phusion-passenger-rails-app-on-the-same-domain/
Upvotes: 0
Reputation: 981
If you are deploying your rails app using Passenger then you can disable Passenger for a particular location. See section 5.8 of the documentation, which has an example for WordPress.
Upvotes: 0
Reputation: 32629
You should put your blog into the rails' public directory.
That's the place for static files (and php ones are).
Upvotes: 2