The last completed deployment was via 2.0? It seems like it worked then since I can see the api.
502’s can show even if the rest of the deployment is successful. Usually 502’s are due to PM2 just needing a refresh, app can’t connect to db, app has a hardcoded port that differs from the one assigned in Cleavr that PM2 is attempting to use, etc. https://docs.cleavr.io/nodejs-deployments
It does appear the PM2 config file we generate on the fly during deployments is missing the port number in 1.0. We’ll take a look into that to see if we can find what’s going on.
Oups, i might have missunderstod this. My apps are all created in v1 but logging in to v2 they were all there so i just tried to deploy.
Must i recreate all servers and apps in v2?
So far i don’t see any reason to stick with v1 so maybe i need to click the “Ready to make the switch?” and things will be done to my servers and apps to work in v2?
You don’t need to recreate all the servers and apps in Cleavr 2.0. You can click on the Learn more button on the top banner and then click on Switch so that we can make your servers and apps operational in the new Cleavr environment.
Your love for Cleavr is what motivates us. And we apologise for the inconvenience caused.
The issue was that the .env was not being linked. Env linking is a part of Build Assets hook and it was disabled so we added a new env link hook for you.
W̶e̶ ̶w̶i̶l̶l̶ ̶b̶e̶ ̶a̶d̶d̶i̶n̶g̶ ̶a̶ ̶p̶r̶o̶p̶e̶r̶ ̶a̶n̶d̶ ̶c̶l̶e̶a̶r̶ ̶d̶e̶s̶c̶r̶i̶p̶t̶i̶o̶n̶ ̶t̶o̶ ̶a̶l̶l̶ ̶t̶h̶e̶ ̶h̶o̶o̶k̶s̶ ̶s̶o̶o̶n̶.̶ We have added proper instructions for some of the hooks.