I recently decided to create a small blog for personal use (for now) on Azure. I started digging into the Hexo blogging platform. Now I have the (first) basics under control with running the Hexo blog locally, but I want to push it to Azure.
I set up a basic web application with a GIT connection for continuous deployment ( https://github.com/lmeijdam/demo-repo ). I tried the tutorial using
- server.js file
- package.json
- .gitignore
The working response will work above and set node_modules ... But from there I really lost my next steps ...
I know that you can create a package.json file and view my ftp client, which is package.json, as well as the node_modules folder with the correct modules installed. My .json package;
{"name": "hexo-site", "version": "0.0.0", "private": true, "hexo": {"version": "3.1.1"}, "dependencies": {"express ":" * "," hexo ":" ^ 3.1.0 "," hexo-deployer-git ":" 0.0.4 "," hexo-generator-archive ":" ^ 0.1.2 "," hex generator-category ":" ^ 0,1,2 "," hex generator index ":" ^ 0,1,2 "," hexo-generator-tag ":" ^ 0.1.1 "," hexo-renderer-ejs ":" ^ 0.1.0 "," hexo-renderer-marked ":" ^ 0.2.4 "," hexo-renderer-stylus ":" ^ 0.3.0 "," hexo-server ":" ^ 0.1.2 "}}
and I also found that you can deploy Procfile in the GIT repository that Azure uses if you don't have a default file called server.js ( https://github.com/yavorg/azure-node-starter/blob/ master / Procfile )
And later a friend came up with a tip to edit the procfile to write something like;
web: / node_modules / hexo / bin / hexo server instead of website: node server.js
Unfortunately, this just leads to the default blanco webpage ... http://lmnodetest1.azurewebsites.net/
Am I doing something wrong here, or am I forgetting something at the beginning?