loopbackio / loopback-next

LoopBack makes it easy to build modern API applications that require complex integrations.
https://loopback.io
Other
4.92k stars 1.06k forks source link

[Spike] Deploy LB4 applications to Microsoft Azure #1466

Open bajtos opened 6 years ago

bajtos commented 6 years ago

Find out what's needed to deploy LB4 applications to Microsoft Azure and write a short document describing the steps.

See #1446 for more details and acceptance criteria.

dhmlau commented 6 years ago

Moving out of GA scope, keeping deploying to IBM Cloud as the first priority in the same epic.

ericzon commented 5 years ago

First of all, thanks for this nice work. I was able to deploy a LB 4 API in Azure (connected with a CosmosDB nosql) as App Service. During the process I found two main problems:

I suggest you to modify the method build-schema.js / getTitleSuffix to use any valid value or at least make it configurable from the app.

If you need it, I can create ticket for these two issues.

dhmlau commented 5 years ago

@ericzon, thanks for trying out the deployment to Azure. :)
Seems like you were able to find the cause of the problem, are you interested in submitting a PR?

ericzon commented 5 years ago

Yes, @dhmlau there's my PR :)

ghost commented 5 years ago

@ericzon Can you explain what steps you have used to deploy to azure app service on a windows web app?

I have tried multiple methods and it all seems to fail. Although I have gotten this to work on a linux web app.

ghost commented 5 years ago

Deploying to Azure App Service Linux Web App

Inside the Azure Portal> Configuration > Application Settings add the following: BUILD_FLAGS : Off

Inside the Azure Portal> Configuration > General Settings add the following to the Startup Command: pm2 start --no-daemon index.js

gagarine commented 3 years ago

Is their a documentation to deploy LB4 on Azure? I'm using the provided github action but it fail. It was working using the quick&dirty deployement from VS code. I guess it's because now it use PM2 instead of only npm start.

sadranyi commented 2 years ago

I am also experiencing the same issue, it deploys with GitHub actions but trying the Classic Azure DevOps just fails a guide on how to deploy it to Azure App Service or API management would really be helpful