-
-
Notifications
You must be signed in to change notification settings - Fork 876
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Azure build pipeline issues. #1214
Comments
Got workaround of 2. and the built server.js now has But I'm sure there should be definitely better approach with modifying RAZZLE_PUBLIC_DIR. |
hello, what is the problem? I'm living in a country that can't use Azure or AWS because of USA sanctions so I have no experience with azure if you explain the problem more maybe I can help you with it |
It was process.env.RAZZLE_PUBLIC_DIR. .use(express.static('build/public')) |
RAZZLE_PUBLIC_DIR is now relative in canary release |
With Azure DevOps pipeline, the process.env.PORT is locked at port 3000 which generates 3e3 hex value in server.js.
Once deployed, homepage generates below error.
Error: EINVAL: invalid argument, stat '/home/site/wwwroot/D:\a\1\s\build\public/index.html'
I have applied work around in #906 but the best result so far is as below.
.use(o.a.static("D:\a\1\s\build\public"))
"D:\a\1\s\build\public" directory is where Azure devOps CI uses for build pipeline.
#1 can be resolved by just manually setting const port = 8080 since Azure WebApp uses 8080 port.
#2 I can only resolve this by using VSCode Azure App Service extension and manually change .use(o.a.static("D:\a\1\s\build\public")) to .use(o.a.static("build/public"))
Can anyone help to fix this build issue or point out where to look at?
The text was updated successfully, but these errors were encountered: