Init Gitea
This commit is contained in:
20
etc/Readme.txt
Normal file
20
etc/Readme.txt
Normal file
@@ -0,0 +1,20 @@
|
||||
* How to CICD to servers by git
|
||||
|
||||
** Create empty git repo on each server
|
||||
mkdir -p ~/cicd/sisai-world-cicd.git
|
||||
cd ~/cicd/sisai-world-cicd.git
|
||||
git init --bare
|
||||
|
||||
** Copy svr_git_hooks_post-receive to ~/cicd/sisai-world-cicd.git/hooks/ on server
|
||||
** Edit to fit server env and rename to post-receive
|
||||
** chmod +x post-receive
|
||||
|
||||
** Edit and test code locally
|
||||
|
||||
** run deploy_XX.sh
|
||||
|
||||
**(Option)the first time may have to copy and edit .env file on servers
|
||||
|
||||
* Start node.js:
|
||||
pm2 start app.js --name sisai
|
||||
|
||||
Reference in New Issue
Block a user