Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I uninstall a Ruby on Rails application?

I've just worked through the Rail example supplied by Apple: http://developer.apple.com/Tools/developonrailsleopard.html

Now that I'm done, I'd like to clean this up and remove the web service, database etc. Obviously I still want the RoR stack in place.

How? Can I do this using rake?

like image 744
Justicle Avatar asked Sep 28 '09 01:09

Justicle


People also ask

How do I remove apps from Rails?

Next up we tell the terminal to cd .. which means go out of the directory you're in. We then get to the terminal to && rm -rf which basically is saying remove all the files and delete the folder of our app. Once this has executed your app and database will have been removed.

How do I uninstall a specific version of Ruby?

Any gems that you install while using an RVM's ruby version, is self contained in that version. However there may come a time when you no longer want to use a particular ruby version and want to delete it along with all it's gems. Then this can be done using the “remove” command.


2 Answers

Just delete it; the whole folder that was created by the rails command you started with, in this case the expenses folder. It's all self-contained.

The rails command creates a copy of the framework, so it'll still be installed.

like image 175
Jarrod Avatar answered Sep 28 '22 08:09

Jarrod


You need to drop your related database and then delete the app directory

# from app directory
rake db:drop
cd .. && rm -rf <app_directory_name>

Rails generator command creates a copy of the framework. The app directory id self contained. Deleting it is enough. If you are using sqlite as your database then you can skip first command.

like image 41
RAJ Avatar answered Sep 28 '22 08:09

RAJ