Answer the question
In order to leave comments, you need to log in
How can this script be optimized?
I wrote the first script in my life for the initial deployment of the application (the application consists of two separate ones - the front and the API).
1. full VPS setup, installation of dependencies, config for the server, etc.
2. copying the keys from the git, cloning repositories, installing dependencies and running them
3. transferring the database, transferring statics (pictures)
#!/bin/bash
USER=iamuser
HOST=88.88.88.88
DOMAIN=example.com
scp keys/* $USER@$HOST:/home/$USER/.ssh
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question