Skip to content

blin17/brianlin.net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

127 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

personal website with automatic conversion for markdown

-- config.js change port if needed -80 for server -3000 for localhost

-- Git pulling without server git reset --hard HEAD git pull

-- Markdown syntax https://daringfireball.net/projects/markdown/syntax

-- Find Process && kill ps aux | grep node kill [pid] OR sudo pkill -f "node app.js"

-- Node App.js nohup node app.js &

-- Setting up a git server (https://git-scm.com/book/en/v2/Git-on-the-Server-Setting-Up-the-Server)

-- Post-receive file (https://www.digitalocean.com/community/tutorials/how-to-set-up-automatic-deployment-with-git-with-a-vps)

T_REPO=$HOME/homepage.git
GIT_REPO=$HOME/homepage/

cd $GIT_REPO
unset GIT_DIR
git pull
sudo pkill -f "node app.js"
npm install
sudo nohup node app.js &
exit

About

personal website hosted on brianlin.net. node.js server running in the backend

Resources

Stars

2 stars

Watchers

2 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors