: Vultr
- Vultr account
- python 3.9 or higher
requirement package: python-dotenv, requests
- Install Requirements Programs
- Download Files from this Repository
1. wget https://raw.githubusercontent.com/bagble/MDS_vultr/master/use_this/deploy_server.py
2. wget https://raw.githubusercontent.com/bagble/MDS_vultr/master/use_this/destroy_server.py
3. wget https://raw.githubusercontent.com/bagble/MDS_vultr/master/use_this/check_setup_script_id.py
- Create
.env
file
VULTR_API=<Vultr API Key>
VULTR_SCRIPT_ID=<Vultr Script ID> # after
- Register/Login to Vultr
- Go to
https://my.vultr.com/startup/manage/?id=new
#!/bin/sh
wget https://raw.githubusercontent.com/bagble/MDS_vultr/main/auto_script.sh -O /root/auto_script.sh
wget https://raw.githubusercontent.com/bagble/MDS_vultr/main/mdsStartup -O /etc/init.d/mdsStartup
# Permission
chmod +x /etc/init.d/mdsStartup
chmod +x /root/auto_script.sh
# Startup
sudo update-rc.d mdsStartup defaults
sudo systemctl enable mdsStartup
# Reboot
bash -c "sleep 5; reboot"&
- Add Script
- Run
python3 check_setup_script_id.py
- Check
id
then putVULTR_SCRIPT_ID
in.env
- Run
python3 deploy_server.py
- Done!
- You can use
python3 destroy_server.py
to destroy the development server.