- Lan cable mast be connected to first ethernet port(eth0).
- Install app "Git Server" to NAS. Add permission for users in "Git Server".
- Create folder "git" and set up permission for users.
- Open SSH access to NAS. You can change the standard port (22) to your own.
- Create access by SSH KEY.
- Connect to server by SSH and install PM2 by command "sudo npm install pm2 -g".
- Copy Scripts to NAS, make executable.
- "/volume1/git/CreateRepo.sh" + "sudo chmod +x CreateRepo.sh"
- "/volume1/git/CreateAutoStart.sh" + "sudo chmod +x CreateAutoStart.sh"
- Run script "CreateAutoStart.sh"
- "sudo /volume1/git/CreateAutoStart.sh"
- Install and set up GitHub CLI on PC.
- Start script on NAS "/volume1/git/CreateRepo.sh".
- Enter name of new project.
- Created file "project name-ForPC.sh"
- Created file "project name-autostart.sh" in folder "/volume1/git/scripts", to start web site when NAS will be reboot.
- Copy file "/volume1/git/project name-ForPC.sh" to PC projects folder.
- Run script "project name-ForPC.sh"
- Created and copy new public repository on GitHub with name "project name";
- Created "README.md" file;
- Add connect info about NAS to Git config file;
- Make first commit and push to NAS (git push -u nas master) and GitHub (git push -u origin master).
https://mariushosting.com/synology-basic-command-lines-for-dsm-7/
https://www.taniarascia.com/how-to-create-and-use-bash-scripts/
https://gist.github.com/Nilpo/8ed5e44be00d6cf21f22
https://gist.github.com/bsara/5c4d90db3016814a3d2fe38d314f9c23