This file contains hidden or 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
1) Connect to your server and create deployer user | |
_________________________ | |
ssh -i ~/.ssh/id_rsa.pub ubuntu@Server_IP | |
sudo su | |
cd | |
adduser deployer | |
mkdir -p /home/deployer/.ssh | |
\\ Copy key from local machine - |
This file contains hidden or 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
1. Create new app: | |
rails new your_project -j=esbuild -d=postgresql -T --css [tailwind|bootstrap|bulma|postcss|sass] | |
2. Run: | |
echo 'app' > .ruby-gemset | |
5. Rename main css file in app/assets/stylesheets dir to "application.scss" | |
6. Add to package.json | |
"scripts": { |
This file contains hidden or 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
// CREATE AN EC2 INSTANCE | |
- In local machine Terminal enter the following command and copy the result. | |
cat ~/.ssh/id_rsa.pub | |
- from the AWS EC2 dashboard click ‘Key Pairs’, then ‘Import Key Pairs’. | |
Specify the name id_rsa and paste the key you just copied from your local machine. Then click ‘Import’. | |
- create ec2 instance LTS Ubuntu. |
This file contains hidden or 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
// Basic server setup | |
1) Connect to your server | |
your_machine$ ssh root@server_host | |
2) Update/Upgrade your system packages | |
root# apt-get update && apt-get upgrade |