https://resumetool.eliasjaffe.com
An intro and demo video for the tool.
cd frontend
npm install && npm run dev
cd backend
# activate venv
cd src
uvicorn --port 20595 app:app --reload --env-file ./.env.development
Variable | Sensible Default (Amazon Linux) |
---|---|
INSTALL LOCATION | /home/ec2-user/repo |
WEB COMMON | /var/www/app/dist |
sudo yum install -y nginx npm git python3
git clone https://github.com/HandcartCactus/resume-tailoring-tool.git /home/ec2-user/repo;
#cd /home/ec2-user/repo/frontend
npm install
npm run build
sudo mkdir /var/www/
sudo mkdir /var/www/app
sudo cp -R /home/ec2-user/repo/frontend/dist /var/www/app
# Modify filename & internal url before copying if you're not me
sudo cp /home/ec2-user/repo/frontend/resumetool.eliasjaffe.com.conf /etc/nginx/conf.d
sudo yum install certbot
sudo certbot certonly --standalone -d resumetool.eliasjaffe.com
sudo systemctl start certbot-renew.timer
cd /home/ec2-user/repo/backend
python3 -m venv venv
source /home/ec2-user/repo/backend/venv/bin/activate
python3 -m pip install -r /home/ec2-user/repo/backend/requirements.txt
deactivate
sudo nginx
cd /home/ec2-user/repo/backend
source venv/bin/activate
cd src
nohup uvicorn app:app --host 0.0.0.0 --port 20595 --workers 4 --env-file ./.env.production &
# one of these:
# graceful stop
sudo nginx -s quit
# i'm serious
sudo nginx -s stop
# don't make me call your mother
kill -9 $(pgrep --full nginx)
kill $(pgrep --full "/home/ec2-user/repo/backend/venv/bin/python3")
cd /home/ec2-user/repo
git fetch
git pull
cd frontend
npm install
npm run build
sudo rm -rf /var/www/app
sudo cp -R /home/ec2-user/repo/frontend/dist /var/www/app
cd ../backend
source venv/bin/activate
python -m pip install -r requirements.txt
cd src
kill $(pgrep --full "/home/ec2-user/repo/backend/venv/bin/python3")
nohup uvicorn app:app --host 0.0.0.0 --port 20595 --workers 4 --env-file ./.env.production &
deactivate
cd /home/ec2-user/repo