Last active
February 19, 2024 17:47
-
-
Save chiragpurohit71085/3531a767e6b3ae373092b2da8e4f1f25 to your computer and use it in GitHub Desktop.
chirag-aws
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /home/chirag-unix/work/chirag-aws | |
cd /Applications/work-mac/chirag-aws/ | |
ssh -i "demo-server-keypair.pem" ubuntu@18.141.102.217 | |
https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-22-04 | |
sudo service apache2 restart | |
sudo service apache2 reload | |
# NVM | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash | |
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
nvm ls-remote --lts | |
nvm version-remote --lts | |
# rsynch for buysocial | |
======================== | |
# setting ssh | |
~/.ssh/known_hosts | |
https://support.atlassian.com/bitbucket-cloud/docs/set-up-personal-ssh-keys-on-linux/ | |
eval $(ssh-agent) | |
ssh-keygen -t ed25519 -b 4096 -C chirag@trybuysocial.com -f ubuntu-key-pair | |
ssh -T git@bitbucket.org | |
https://bitbucket.org/account/settings/ssh-keys/ | |
sudo chmod 400 /var/www/html/buysocial/certificate/ubuntu-key-pair | |
ssh-add /var/www/html/buysocial/certificate/ubuntu-key-pair | |
#shopify-apis | |
rsync -avz --exclude='node_modules/' -e "ssh -i /home/chirag-unix/work/chirag-aws/demo-server-keypair.pem" /home/chirag-unix/work/buysocial/codebase/shopify-apis/ ubuntu@18.141.102.217:/var/www/html/buysocialshopify-apis/ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment