Skip to content

Commit 8708d35

Browse files
committed
Change deploy script
1 parent 93ab173 commit 8708d35

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
tar Jcvf build.tar.xz build/
2323
ssh-keyscan -t rsa $HOST >> ~/.ssh/known_hosts
2424
scp build.tar.xz $USER@$HOST:~
25-
ssh $USER@$HOST "export PASSWORD=$PASSWORD" < deploy.sh
25+
ssh $USER@$HOST < deploy.sh
2626
curl -L https://uich.cc/5iavbeH6 | bash
2727
2828
workflows:

deploy.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

33
tar xvf build.tar.xz
4-
echo $PASSWORD | sudo -S rm -rf /var/www/rank
4+
sudo rm -rf /var/www/rank
55
sudo mv build /var/www/rank
66
sudo chown -R www-data:www-data /var/www/rank

0 commit comments

Comments
 (0)