This repository has been archived on 2026-03-12. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
codewanderer/deploy.sh
2021-07-14 16:35:57 +02:00

15 lines
No EOL
374 B
Bash
Executable file

#!/bin/sh
echo "Building project ..."
npm run build
echo "Project build done!"
echo "-------------------"
echo "Removing existing folder on remote"
ssh root@202.61.225.50 rm -rf /var/www/codewanderer
echo "Folder on remote removed!"
echo "-------------------"
echo "Uploading new project state"
scp -r dist root@202.61.225.50:/var/www/codewanderer
echo "Upload complete!"