问题
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.
回答1:
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.
来源:https://stackoverflow.com/questions/12523435/how-do-i-ignore-folders-and-files-when-pushing-to-heroku-with-a-rails-app