spec/railsapps/README.md in roadie-rails-1.0.4 vs spec/railsapps/README.md in roadie-rails-1.0.5
- old
+ new
@@ -27,25 +27,26 @@
cd rails_x_y
```
The next step is of course specific to each Rails version. One of the easiest methods is to just start by deleting directories you know you have no use for, like `tmp`, `log` and `README.md`.
-```
+```bash
rm -rf README.* tmp log db app/controllers app/helpers app/views/layouts public doc
```
You should also go through the initializers under `config` and remove the ones that don't apply; only keep the `development` environment. You should also strip away documentation comments and similar from all the files under `config`. Make them compact and only keep what is needed.
After doing this, run `git add .` and inspect the list of added files. If there's any file there you didn't intend to add, just remove it with `git rm -f`.
## Copy mailer and templates
-```
+```bash
cd ..
-cp -r rails_40/app/mailers rails_x_y/app
-cp -r rails_40/app/views/*mailer rails_x_y/app/views
-cp -r rails_40/app/assets/* rails_x_y/app/assets
+rm -rf rails_x_y/app/assets rails_x_y/app/views
+ln -s ../../shared/pipeline/app/assets rails_x_y/app/assets
+ln -s ../../shared/all/app/mailers rails_x_y/app/mailers
+ln -s ../../shared/all/app/views rails_x_y/app/views
```
## Apply options and add gem
Open up `config/application.rb` and add the following options:
@@ -61,6 +62,5 @@
```
## Add to integration_spec.rb
Add the information needed in `spec/integration_spec.rb` and run `setup.sh` before finally running the tests themselves. When everything's good, `git add` everything and commit.
-