I have an open source project which is hosted on Github. I want to include examples/samples in the github repo, but also include a file that’s something like .herokuignore to make sure that those samples don’t get deployed to Heroku. Possible?
The Heroku dev center page indicates it uses the .gitignore file, which is good, but I still need those files to be in git.
Also, saw this already on SO, but it’s not quite the same thing: App on Github and heroku: Ignore file on one but not the other
Yes – there’s a
.slugignore, which contains a.gitignorelike syntax describing which files you do not want compiled into your Heroku slug