-
Notifications
You must be signed in to change notification settings - Fork 3
rails cleanup
Several unneeded files are generated in the process of creating a new Rails application.
Additionally, you may want to prevent search engines from indexing your website if you’ve deployed it publicly while still in development.
Here’s details about files you may wish to remove or change.
If you are creating an application template, this step uses the cleanup recipe from the rails_apps_composer repository.
Remove various unneeded files from your application:
$ rm public/favicon.ico
In Rails 3.1:
$ rm app/assets/images/rails.png
In Rails 3.0:
$ rm public/images/rails.png
To run and test your application, you likely already deleted the default home page from your application. But if you didn’t already:
$ rm public/index.html
If you are creating an application template, this step uses the ban_spiders recipe from the rails_apps_composer repository.
You may want to modify the file public/robots.txt to prevent indexing by search engines if you plan to have a development version on a publicly accessible server:
# To ban all spiders from the entire site uncomment the next two lines: User-Agent: * Disallow: /