-
Notifications
You must be signed in to change notification settings - Fork 14
Help: Zeit Now V2 Deployment #130
Comments
I've been working for about two weeks on deploying to Now v2 also. I've now gotten a Now customer service employee helping me figure out why the deployment isn't working correctly. So far, the issues seems to be with NCC and on Now's side. However, they are looking at one more deployment of a yoga2 server that did work. I might know more today; I'll keep this comment updated as I learn more. |
Ok awesome, this has been driving me nuts!! I am looking in to implementing apollo-server-lambda in to yoga2, do you think that this would be worth while? |
Hey 👋, Could you please provide a bit more context? We have deployed a yoga2 server recently using the very same now.json file as you do and had no issue doing so |
I've been trying to deploy this project. However, an employee at Zeit tells me it keeps erring out due to NCC not working correctly. |
Hey @DevanB, Have you heard back from Zeit? |
Nope no response. I know another developer I was talking to deployed a yoga2 server with no luck also. @Weakky - I deployed your Prisma e-commerce branch and it deployed, but doesn’t work correctly. For instance, you can’t hit the playground and seems you can’t make any requests into it. |
Hey @DevanB, what output do you get when running |
@williamluke4 I actually got it working with |
Running |
Yep, except for running `now dev` works, but deploying fails with no errors.
… On Apr 15, 2019, at 10:48 AM, William Luke ***@***.***> wrote:
Running now dev should give you a better idea of why it is not working when deployed. Just want to check to see if it is the same error that I am receiving
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#130 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAVpXM6UMrMiiy_q70b28vPPZKFZo6a4ks5vhJFLgaJpZM4cpQCk>.
|
Have you tried accessing the playground after running it |
That is very weird as |
There are two things to take into consideration here:
One workaround for now is to eject and set Regarding the ncc error, there's nothing I can do without any logging. Someone recently reached to me to deploy yoga to now2 and succeeded without issue (once he knew he had to manually force |
@Weakky, Correct... I have tried with both introspection enabled and disabled; The same for the playground |
Here are the logs
|
Isn't your issue related to that? vercel/vercel#1127 |
Yes but this is the error when run locally when deployed the error seems to be different. The Introspection and Playground works when deployed but queries return |
Not exactly relevant here but because Zeit is moving to serverless with V2 and doesn't exactly fit the GraphQL model right now, I'm going to try moving to Google Cloud Run which is a Serverless Docker offering. A lot like the serverless docker offering that Zeit offered at one point. It might be easier to deploy a Yoga 2 server on there. |
@andyk91 Could you let me know how you get on :) |
Now + GraphQL are headed in opposite directions and that's ok. Heroku is a good option for deploying yoga2. |
That's not true, why are they heading opposite directions? There is an open issue #14 and the plan is to build yoga with |
@yakovlevyuri I don't get the whole serverless push and then all these monolithic GraphQL servers dotted around. If they can make my resolvers lambdas that would be a great paradigm shift, until then, how's Heroku any different to using @now/node-server? |
To each their own, and this isn't an issue to discuss who prefers what. This issue is titled "Help: Zeit Now V2 Deployment", not "Let's Discuss Open-endedly About the Future of GraphQL, Serverless, Hosting, and What Provider We Prefer". In fact, there a more relevant issue for that discussion over at #14. @williamluke4 and I are on a mission to help the Zeit team, and future yoga2 users deploy to Zeit v2. So no need to muck up this issue with your opinions on non-relevant topics. |
Hey @DevanB Hold your horses. I've spent the last quarter migrating from Now 1 to 2 and worked with the Zeit team to resolve issues in this space, and for some things (Subscriptions ws) on Now 2 just isn't the right fit. So my experience here kind of tells me Now 2 won't do everything people want moving from 1 to 2 but I certainly didn't mean to say it's not possible! Good luck on your mission! You'll be thanked by many. |
@DevanB not sure if you figured out how to get it working or not but I believe I did and will post here in case anyone else is looking for help. You can test the api running on
You can also see my setup here: https://github.com/andyk91/profile.im . Yoga2 is in I might not leave yoga2 in my project though so I think the main two pieces are my
and my
|
I made another repo dedicated to this issue plus a |
I was able to get my server to deploy by adding Also, for what it's worth I had to do the same when I created a raw Apollo Server (not using yoga2) |
Does anyone have experence deploying
Yoga 2
toNow V2
. I have been trying on and off for a week now with no avail. Below is mynow.json
The text was updated successfully, but these errors were encountered: