I have a compiled folder named /target
where my server.js
lives. Since it's compiled files, I added /target
to .gitignore
since I don't want all those changes checked it into my GitHub.
But Heroku ignores anything listed in the .gitignore
, so I'm unable to spin up the app.
Ideally I'd like to run node /target/scripts/server.js
in Heroku. And not have the compiled /target
folder checked into GitHub.
What's the best way to handle this situation?