aroswell
By:
aroswell

Will Rbenv conflict with pre-installed rvm on droplet?

November 5, 2015 901 views
Ruby Deployment

Hi,

I'm concern there may be problems if I install rbenv when I already have the pre-installed rvm on my droplet.

I'm following a tutorial to set by env variables using rbenv-vars plugin.

Could you please advise?

Thanks

1 Answer

Yes. Rbenv and rvm should not be used together. They will both attempt to manage your Ruby environment in ways that are incompatible with each other.

To uninstall rvm completely, you can run:

  • rvm implode

You may also need to delete /etc/profile.d/rvm.sh or any snippets added to your ~/.bashrc file.

If you'd like to create an environment that is similar to the one provided by the DigitalOcean One-Click app using rbenv instead of rvm, this tutorial will walk you through the process:

When you are ready to deploy your Ruby on Rails application, there are many valid setups to consider. This tutorial will help you deploy the production environment of your Ruby on Rails application, with PostgreSQL as the database, using Unicorn and Nginx on Ubuntu...
Have another answer? Share your knowledge.