I have written a local index.js file and hosted through google cloud sdk. updated webhook of dialogflow. It is working fine. But when i make some changes in local index.js these changes are not getting reflected in bot replies.
I found the answer we can just edit the source code of the deployed function through google cloud platform and deploy it again
Related
I have a Wordle-esque app that I want to deploy using Azure. Repo here. It is a fork from a popular open-source project, and I can also locally build and run the game. Locally, it runs perfectly.
I am trying to use Azure App Services to deploy it, using a Github Action. All the Actions pass, and the App can be successfully built. However, when I try to view the deployment here the only error I am receiving is
You do not have permission to view this directory or page.
Since it runs locally, and it pass its github action build, I do not know how to proceed here. I have tried restarting the app, and changing the resources I am using to host it, but that does not work. Some other answers seem to suggest the problem is about it not finding index.html, but I can access that through https://shetland-wordle.azurewebsites.net/public/index.html and the page is blank.
If i look under wwwroot/ in the Azure debugger I see the following file structure:
Any help would be appreciated
turns out it was something strange with package.json. I needed to change the path to my react scripts:
"start": "node_modules/react-scripts/bin/react-scripts.js start"
Not sure if its good practise to do this, but it works now
I've created two pipelines: build and release for Nodejs app.
Here is the link to nodejs app repo: azure web service
Here is the tasks for build pipeline:
Here is the wwwroot folder structure:
So it is look like all required files are present.
Despite that, I'm constantly receiving:
You do not have permission to view this directory or page
I've tried to add web.config file, but it did not help.
I have front end application on same App service Plan and it works, so it is no way that I have bad service plan.
Do you have any suggestions?
Thanks a lot.
I was able to deploy my service only after using nodejs-docs-hello-world starter.
It is looks like web.config is a required file, btw, still did not find any meaningfull documentation for web.config.
Make sure your azure nodejs env support your js syntax (import from ...), in other case use webpack or typescript.
I'have found App Service Editor very helpful if you want to debug your code errors. See section Output.
I had a problem also with nodejs version, despite the fact I choosed node 12 tls during web app creation, I have noticed that my app used node 6 under the hood. So I changed default nodejs version to 10. See here how to do it
Also, I want to thank #Jason Pan for his help.
I have an angular 7 app that runs on NodeJS server. When I build my app from local and deployed it, it works fine.
However, after I committed the project to github, another developer cloned it. He created the build for NodeJS server, and now all the paths are pointing to github.
Screenshot from console
Did anyone experience the same? Please advise how to fix it.
I have created a Web App Bot (sdk3) in the Azure portal and am using Node.js. I have read the instructions for creating a welcome message here.
However, I don't know where exactly to put the sample code copied from this page in the online editor.
I understand that I'm supposed to make changes in the app.js file, but where exactly?
You can refer to the sample code samples/javascript_nodejs/03.welcome-users of Node.js in GitHub repo Microsoft/BotBuilder-Samples.
The bot.js code is in the document you linked.
I am new to Google cloud platform, Recently I deployed a Nodejs-MongoDB application on Google cloud platform. I followed this article for that until this time everything worked perfectly fine.
Now I am trying to update the code using same steps, but changes are not reflecting. Before posting this question I checked for a solution over different forums and SO., but I couldn't find anything.
Also, how can I download my source code to verify the deployed version's source code? I tried to find appcfg.py file but it does not exist on my machine.
If I have asked something invalid, I apologize in advance.
Thanks.