-
-
Notifications
You must be signed in to change notification settings - Fork 262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to deploy on heroku? [Help Wanted.] #37
Comments
I added a troubleshoot section for Heroku yesterday: https://www.robinwieruch.de/graphql-apollo-server-tutorial/ Can you check if one of the two tips helps you? |
Thanks for reply, i am stuck at running Client and Server concurrently on Heroku. Struggling with node Scripts to run application after deploy. |
Do |
Just to make sure, don't forget to add the introspection flag:
|
@bamne123 did this help you? |
@rwieruch, I did not want to create an extra issue for this but I had to add |
Thanks for mentioning @devserkan I will add it to the book! |
You are welcome @rwieruch. I thank you for this excellent book. |
Fixed 8dcea82 but I keep this open for people who stumble on these issues. |
If anyone is running into this issue, just leave a quick comment here so that I know that this is still relevant. |
@rwieruch, I get these errors when I try to run the app on heroku. 2019-01-21T21:15:11.704553+00:00 app[web.1]: > nodemon --exec babel-node src/index.js I think this is caused because my server folder isn't at the root level and the script is trying to run the npm start on the index.js file from root level not the /server/src folder? I'm not sure why it isn't working though I don't know anything about heroku or much about builds. I have set introspection and npm config production = false as well as yarnproduction = false. Any ideas what could be going wrong? Also, I setup heroku project within the /server file not root level. I also tried it from root level and neither work. Here is my project as it's currently setup on github. |
@tmstani23 Hm, my suggestion would have been to try it with your project at the root level. But if this didn't work, I don't know if Heroku changed something again. Maybe try to clone this repository to your machine and deploy it to Heroku. If this doesn't work as well, there is a bug again. |
I got it working! I had to move all the files into the root level. I removed the server folder so now it's root and src folder only. I also had to install nodemon as dev dependency using npm install nodemon --save-dev |
Not able to deploy on heroku, Did anyone tried?
The text was updated successfully, but these errors were encountered: