Replies: 2 comments
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Hello. Running into the same issue. Did you find a solution? |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
I have a NodeJS app running on MS Azure as an Azure Web App. I have been using Github Actions to deploy new versions when new code is pushed to a develop/staging branch or the main branch on my Github remote repo.
This works. But it takes about 25 minutes at least to deploy, even if the code change is tiny, eg a single character in one .js file. The app is large and has many dependencies, but usually these are not changing and shouldn't need to be built and deployed each time. The logs suggest more than 10,000 files are being uploaded. Thus the build and deploy steps each take ages and this results in significant downtime for the live app on the Azure server.
Below is my (anonymised) current .yml file - as I say, this actually works, but it takes such a long time. Can anyone suggest a way of deploying just the changed files rather than rebuilding the whole app and deploying everything every time I need to make minor adjustment? Or, to put it another way, can I get Github Actions to publish changes incrementally rather than rebuilding the whole app?
If this isn't possible, can anyone suggest a better way to deploy my NodeJS app to an Azure WebApp slot?
.yml file>>>
`name: Build and deploy Node.js app to Azure Web App
on:
push:
branches:
- develop
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: 'Staging'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
`
Beta Was this translation helpful? Give feedback.
All reactions