Created
June 18, 2021 04:02
-
-
Save aahnik/afbfe24e9909628f563d0d882daddc39 to your computer and use it in GitHub Desktop.
My script to setup Digital Ocean Ubuntu Droplet for deploying python apps
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
apt-get update && apt-get upgrade -y | |
apt install wget curl git zsh -y | |
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)" | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
apt install python3.9 python3.9-venv python3-pip -y | |
python3.9 -m pip install --upgrade pip | |
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.9 2 | |
pip install pipx | |
pipx ensurepath | |
pipx install poetry | |
pipx ensurepath | |
git config --global credential.helper store # store as plaintext | |
poetry config virtualenvs.in-project true | |
# reboot | |
# chsh -s $(which zsh) # set zsh to default shell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment