Can’t provide github repository due to some reasons. But if required I will be sharing snippets around the thread.
Getting deployment error in my nodejs server application
I have choosen buildpack option instead of docker file option. Now I am getting errors, please tell me is there anny exceptions to add in code base like configuring run and build commands in package.json or something like that.
Yes, it is running perfect on local development server and I have hosted it using another platform also, it working fine there. I think I am missing to make some important configuration in my code or Qovery console setting.
No, I didn’t try working with a dockerfile. I want to use buildpack only. However if things don’t go right with buildpack, I will go for dockerfile option.
Yeah, I tried many things, I think I am missing some files that are required by qovery buildpack to deploy my application, for eg. in docker option you need a docker file.
However here’s my package.json:
I ran a test project with your package.json and it works just fine. I guess there’s something wrong with your code. Make sure your Express App listens on port 3000. And if your app uses environment variables, set them in Qovery console.
One thing you might try adding in package.json is the “engines” property where you can specify the version of node and npm.
Thank you so much Deutsch. I was using diffrent ports in qovery console and my code, that was the only issue. We should use same ports, got it. Thank you