I have followed all the steps here to deploy my Aurelia application to Azure, however I am getting the following error when I try to access the application URL:
You do not have permission to view this directory or page.
My application is essentially the same as the skeleton app and has no server.js or node.js file.
Can anybody point me in the right direction on how to deploy my application?
According the intrdocution:
Aurelia is a next generation UI framework.
Which means that the Aurelia is a fronted javascript library, and a Node.js server application, which should be based on a HTML+CSS application architecture. Need a index.html file in the root directory of your application at least. You can make a complete Aurelia application as mentioned at http://aurelia.io/hub.html#/doc/article/aurelia/framework/latest/quick-start/1, and deploy it to Azure.
Furthermore, we can leverage Custom Deployment Script to bundle the Javascript sources via gulp or babel, you can refer the answer of Custom startup command for Node.js app on Azure with Babel 6 for details.
Related
In Azure, I have a Static Web App and an ASP.NET web API (running in App Service).
Following this guide on Microsoft learn https://learn.microsoft.com/en-us/azure/static-web-apps/local-development, I know it's possible to run a static web app and an azure functions API locally, but I can't find anything about a different kind of API.
When I run the CLI command " swa start dist/MyApp.front-end --api-location 'C:\GIT\MyApp.Backend'" I get the error:
[api] Unable to find project root. Expecting to find one of host.json, local.settings.json in project root.
This makes sense... because my project has appsettings.development.json instead of the local.settings.json, but I was hoping it was smart enough to use the other files.
Does anyone have any experience with running a static web app and asp.net api locally with the static web app CLI?
I have spent many days but still can not get this to work.
I have setup a deployment pipeline for NextJS I have the dist folder and I'm also copying the node modules folder etc. The build pipeline works, makes a package which is then deployed to a Azure Linux Web App.
Problem is can not hit the application
I look into the logs and I can see the app has started but for some reason the container fails and the site never works.
I'm pulling my hair out here I have tried everything, read every guide I can find but nothing seems to work. Help me stack-bi-wan-overflow your my only hope.
As you have confirmed in your comment , Converting this to answer to help other community members.
To achieve the above requirement make sure that you have used express instead of using fastify . As fastify must have different network configuration which can not connect with container.
For more information please refer the below links:-
SO THREAD: nestjs to azure windows app service - web.config settings & Angular CLI app not running when deploying to Linux App Service
Blog:- Deploy and run Nest js app to azure
I am trying to deploy my Quasar app through Azure Portal. I have created a web app service, connected my github repo through the Deployment centre, and ran the build and deploy github workflow successfully (note: my npm run build calls quasar build which the Quasar docs describe). When I use FileZilla to access my server, I see my entire app along with the dist/spa folder under site/wwwroot so I believe the build worked correctly. Unfortunately, when I try to access my app through the browser, I am welcomed with the default Azure webapp page rather than my app.
Default Azure WebApp Page
I am unsure why my files are not being served. I have deployed a very simple Nuxt.js app in the past using the same approach and managed to deploy it relatively quickly. Perhaps nuxt.js does something under the hood that I am not aware about.
Any leads will be greatly appreciated.
We have a node.js application that we built its front-end with VueJS, we deployed our back-end code (java spring) properly and we got a link (https://ourWebAppexample.net) that runs the back-end code as expected.
We usually run the front-end on a local host from a folder that contains the code with "npm run dev".
Now we want to deploy the front-end to Azure web-app using Visual Studio Azure extension.
We tried some tutorials (like: https://code.visualstudio.com/tutorials/app-service-extension/getting-started) and we got deployment successful but it didn't work properly.
How do we deploy a Vue.js application to Azure and get a "link" where our front-end code should run? is there any other way to deploy a node.js code (not using Visual Studio) ?
It is possible to update app.yaml or dispatch.yaml for services running in Google Cloud Platform by running the following in the terminal:
gcloud app deploy dispatch.yaml
However, when I replace dispatch.yaml with server.js, I get the following message:
ERROR: (gcloud.app.deploy) [path to the file] could not be identified as a valid source directory or file.
Is the only way to deploy the application completely again?
The gcloud app deploy takes YAML configuration files as input for determining what aspects of your application's configuration will be updated. If you specify gcloud app deploy app.yaml, the tool will deploy a new version of your app. If you want to override an existing version, then use gcloud app deploy app.yaml --version=NAMEOFCURRENTVERSION
If you need to upload changed files, you need to redeploy the app. Its tempting to think of App Engine like a standard web hosting environment, but the application code is containerized and possibly in multiple running instances. You don't have direct access to the files for things like direct editing or replacement.