Skip to content

Commit

Permalink
Add manual deployment steps in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dandinu committed Aug 15, 2023
1 parent 9116afe commit 71419bd
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions docs/4-deployto-azure.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,43 @@ Once the secrets are configured, the GitHub Actions will be triggered for every
![](/images/runworkflow.png)

[Next](/docs/5-add-Identity.md)

# Deploy the app manually (Without Github Actions).

Do an npm install and npm run build like so:
```
cd ./src
npm install
npm run build --if-present
cd ..
```
Copy standalone into the root
```
cp -R ./src/.next/standalone ./site-deploy
```
Copy static into the .next folder
```
cp -R ./src/.next/static ./site-deploy/.next/static
```
Copy Public folder
```
cp -R ./src/public ./site-deploy/public
```
Create a zip of your Next application
```
cd ./site-deploy
zip Nextjs-site.zip ./* .next -qr
```
Deploy to a Web App via REST API cURL command or using Azure CLI
```
az functionapp deployment source config-zip -g <resource_group> -n \
<app_name> --src Nextjs-site.zip
```
or
```
curl -X POST \
--data-binary "@Nextjs-site.zip" \
-H "Authorization: Bearer <access_token>" \
"https://<app_name>.scm.azurewebsites.net/api/zipdeploy"
```
That's it!

0 comments on commit 71419bd

Please sign in to comment.