Quick Notes

quick tech notes and showcase

Unsplashed background img 1

Chapter 1: deploying a website on a distant server

***part 1 github quick updates using command line

step1: creating a remote git init

step2: modifying files locally
git remote add origin git@github.com:et3d/etpro.git
git status
zzzzgit remote -v
git add . or git add fileA
git commit -m "modification 001"
git push origin master
>auth user & pw

step3: updating the remote
*CASE1 we don't want to merge because this is big production
rm /home/user/public_html/et3D_core-website
git clone https://github.com/et3d/et3D_core-website git clone https://github.com/et3d/et3 -b master
git status

***part 2 sum up website server

sum up: 1 html & css /home/user/public_html
2 server with linux os and ssh
3 lamp package
4 git/ftp
5 ssh access for client and ports, otherwise use openvpn to open ports

lamp config
*site conf :
*IP module?
*ssl module

++++ reboot apache
sudo /etc/init.d/apache2 restart
++++ reboot server
apache2ctl -t apachectl -t -D DUMP_VHOSTS

ln target location
cp -r tar loc
rm -rf loc
mv tar loc
ssh user@ip sudo chmod -R 777 et