This is a basic overview on how to redeploy the Hexo environment from source placed on Github. Assuming you’ve backed up your Hexo source.
.gitignore
Before anything, remember packages.json should be added to your .gitignore - this can conflict with your other working environments. Example of my .gitignore is below.
Clone A Local Copy
|
|
Backup .git and _config.yml to Desktop
Cut and paste both .git and _config.yml to a safe place, because hexo init will removing / overwriting these critical assets.
Initiate Hexo
Assuming that git, node.js, and hexo are installed on your new workstation, proceed.
Install Dependencies / Plugins
Below is examples of my setup.
Copy .git and _config.yml to Hexo environment
Once the hexo environment is setup, copy the .git and _config.yml to your working enviroment. You can now use hexo generate and deploy, git add, commit, push, and pull.
Join the #Hexo IRC channel!
Find us on Freenode! Try a native client like Hexchat (Windows/OSX/Linux) or Textual (OSX) or register up for IRCCloud.com!
|
|