Closed gsingh93 closed 9 years ago
The final steps of the tutorial are meant to populate your private storage, including a sandbox directory archive — but the right sandbox directory archive for the current version of your app is already in your private storage, as you can see in line 233.
First, unset HALCYON_PURGE_CACHE
, as it serves no purpose in your case. Next, unset PORT
, as Heroku will set it for you.
…which is a build error that would be fixed if a complete rebuild was done.
I don’t understand. Foundation.hs:74:37: Not in scope: ‘css_reset_css’
looks like an error in your program. What do you mean by “complete rebuild”?
It compiles, but notice how the Heroku build starts from build 5 of 8. I believe step 4 of 8 is actually what's required for the build to work properly. I could delete everything in S3 and push, but that build would take forever. If I clear everything and run heroku run -s PX build
, the build is quick but it's building what's currently on master, not the changes I've made.
OK. To build your app from scratch, set HALCYON_APP_REBUILD
to 1.
This is equivalent to deleting halcyon-build-class-load-0.0.0.tar.gz
from S3 and purging the cache — so your intuition was partially correct.
But the build that will happen won't happen on a PX server, will it?
Building on a PX one-off dyno is only needed to avoid running into the 15-minute Heroku build time limit. Your sandbox is already built, and building your app should take far less time.
I see. It's working now, thank you for the help!
You’re welcome. One last thing — you should record the constraints given after *** WARNING: Using newest versions of all packages
in a .halcyon/constraints
file. Otherwise, your sandbox will become out-of-date soon after someone uploads a new version of one of your dependencies to Hackage.
Will do, thanks.
I have a yesod website that builds fine locally with
cabal build
, but I can't deploy it because certain things that need to be rebuilt are cached. What I need is to deploy my changes to master without building them (because that would build on a slow dyno) and the build later on on a PX dyno. I've tried following these instructions I don't get the expected lines when setting theHALCYON_PURGE_CACHE
variable, which are:I get
which is a build error that would be fixed if a complete rebuild was done. What am I doing wrong?