Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I ignore folders and files when pushing to Heroku with a Rails app?

I have a Rails 3.2.8 application and I don't want to push my spec folder and test log to Heroku. How would I do this? What about with a staging remote?

Thanks.

like image 243
LearningRoR Avatar asked Sep 21 '12 02:09

LearningRoR


People also ask

Which type of database Cannot be used to deploy your Rails app to Heroku?

So, the reason why you cannot use SQLite on Heroku is because SQLite stores all database information in a file on disk, and because Heroku will delete the files on your disk, this won't work.


1 Answers

You could put them in .gitignore, but that will exclude them from your repository as a whole.

The better solution is to push them to Heroku but prevent Heroku from deploying them to your dynos. You can configure that with a .slugignore file.

like image 66
willglynn Avatar answered Sep 24 '22 03:09

willglynn