Hi @Larry Marshall make sure you've configured your npm start command under Configuration - General Settings. Let me know if this doesn't help.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have followed a couple of threads about deploying a cra app. None have worked. Any change I've made displays the 'Hey, Node developers!' page.
I ran 'npm run build' and ftp-ed the static folder to /site/wwwroot/. I also tried the following file, web.config, in the wwwroot folder.
The structure of the project is
build/
package.json
public/
server/
sql/
src/
I started the project with create-react-app and added an a Node Express server at the server
directory. The server is proxied via the proxy
key in package.json
Both the src and server folders contain index.js files. Each index.js file starts on its own unique port. The server makes SQL calls to an MSSQL database. I have managed to sync the in-house db to the Azure DB.
Any ideas on what I might try?
Hi @Larry Marshall make sure you've configured your npm start command under Configuration - General Settings. Let me know if this doesn't help.
You can check that you have uploaded the files correctly by installing the vscode plugin and then logging in you will be able to see the files that are on the server.
This will confirm that the build file uploaded correctly.
Now, go back to portal.azure.com
Settings > General settings > Startup Command
add the following to serve the index.html from the build file.
pm2 serve /home/site/wwwroot/ --no-daemon --spa