Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 771 Bytes

deploy.md

File metadata and controls

29 lines (20 loc) · 771 Bytes

Tutorial

deploying to github pages

Step by steps

# Create a branch if doesn't exist like the source code
git checkout gh-pages

#create a file vue.config.js if doesn't exist like the source code with contains
module.exports = {
  runtimeCompiler: true,
  publicPath: '/Vue-MQTT-NodeMCU/'
};

# build the program until showed the folder dist or updated if exist
npm run build

#add and commit folder dist only to branch gh-pages
git add dist -f && git commit -m "deploy dist subtree commit"

#push the commit to github 
git subtree push --prefix dist origin gh-pages

#set your github setting to activate the github pages and change to gh-pages branch

reference