Alpha200
Alpha200

Reputation: 478

How to deploy a ruby on rails project to a ruby only server?

I want to deploy a ruby on rails project on a server without rails. Is this possible?

Upvotes: 2

Views: 256

Answers (1)

Glenn
Glenn

Reputation: 1102

You will need to have ruby installed on your server, but if you cannot add a gem, you can vendor rails into your project so that you won't need to run bundle install or gem install. You can run bundle package from the command line to get all of the gems in your Gemfile into /vendor.

In the scenario that you cannot execute ruby, or ruby isn't able to be installed, you're out of luck. I'd check out http://www.heroku.com or http://www.engineyard.com for optimized Rails hosting environments, among many others. Some more good info is available on deployments at http://rubyonrails.org/deploy.

Upvotes: 5

Related Questions