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?
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With