Open i8ramin opened 9 years ago
Pretty sure this is expected behaviour. The deploy command can't know what you have decided to call your production app.coffee
file, I don't think it assumes it's called app.production.coffee
. I could be wrong.
tried passing in a -e production to it as well, but no difference.
Oh I see. I'll have a look at the roots source, maybe this can be fixed in a quick pr. You can always write an npm script like roots compile -e production && ship public/ -to heroku
. However, you might need to use my fork of roots here (the kill-compile
branch) which quits the compile process, which otherwise just hangs.
This seems like a valid issue to me. At least you should be able to pass the environment flag to the deploy command. If someone could take a crack at a PR for this, would be incredible. If not I will get to this eventually, but I'm afraid it might be a while as I'm pretty strapped for time at the moment!
Running
roots deploy -to heroku
doesn't seem to run the production env compilation before deploying.Manually running
roots compile -e production
and thenship public/ -to heroku
works as expected. Tried latest master branch of roots cli as well.Easy to reproduce.
public
folder .. not production files