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

主宰稳场 提交于 2019-12-23 08:49:28

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!