what does nexus build --deployment heroku
do?
#704
-
at first I thought since I'm deploying to Heroku I should have this be my build script, but looking at the logs it looks like this builds to a new Heroku instance? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hey @chrisdrackett, The Here are the validation that it does:
You can also check out the validation code here: https://github.com/graphql-nexus/nexus-future/blob/d722a8e611b50aa377b16ebea4919f2d740ab594/src/lib/build/deploy-target.ts#L138-L212 |
Beta Was this translation helpful? Give feedback.
-
cool, I think what threw me a bit off (before I inspected the code) was this: when I first saw this when inspecting the build log on Heroku I got confused that the build was creating and starting up a new Heroku server from inside our current server. This obviously isn't the case, but made me question what was going on :) |
Beta Was this translation helpful? Give feedback.
Hey @chrisdrackett,
The
--deployment
flag just helps you getting your codebase in a state that works with heroku. Right now, it's really just validation, you don't have to use it if it gets in your way for stupid reasons. If it does though, feel free to report issues so that we can enhance it!Here are the validation that it does:
engines
property (required by heroku at the time we wrote that code)engines
is the same as the one you use locallybuild
script that containsnexus build -d heroku
start
script