We recently started building our application on redwood, We have chosen Microsoft Azure as our cloud provider.
Our Workflow is passing but we are getting 404 error.
./web/dist folder is also getting created.
We are using Azure storage account, Follwoing is the configuration
Disk state:Available
Performance:Standard
Replication:Locally-redundant storage (LRS)
Account kind:StorageV2 (general purpose v2)
Provisioning state:Succeeded
Index document name:index.html
Workflowyml
name: deploy_Myapp
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Azure Login
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Upload to blob storage
uses: azure/CLI@v1
with:
inlineScript: |
az storage blob upload-batch --account-name mpappuat --account-key ${{ secrets.AZURE_STORAGE_KEY }} --auth-mode key --overwrite -d '$web' -s .
- name: Purge CDN endpoint
uses: azure/CLI@v1
with:
inlineScript: |
az cdn endpoint purge --content-paths "/*" --profile-name "profile-name" --name "myappuat" --resource-group "MyAppDevelopment"
- name: Confirm Working Directory
run: |
pwd # Print current working directory
ls
- name: Enable Corepack
run: corepack enable
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
working-directory: ./MyApplication
- name: Confirm Working Directory
run: |
pwd # Print current working directory
ls
- name: Yarn install
run: |
pwd
yarn install
- name: Build web
run: |
yarn rw build web
pwd
ls web
- name: Deploy web
run: yarn redwood deploy render web
- name: Logout
run: |
az logout
if: always()
Package.json
{
"private": true,
"workspaces": {
"packages": [
"api",
"web"
]
},
"devDependencies": {
"@redwoodjs/core": "^7.0.3"
},
"eslintConfig": {
"extends": "@redwoodjs/eslint-config",
"root": true
},
"engines": {
"node": ">=16.x",
"yarn": ">=1.22.21"
},
"prisma": {
"seed": "yarn rw exec seed"
}
}
Workflow is passing but I am getting below error on web page
The requested content does not exist.
HttpStatusCode: 404