4 data
This commit is contained in:
12
4/deploy.sh
12
4/deploy.sh
@ -2,12 +2,6 @@
|
||||
|
||||
set -exu
|
||||
|
||||
SERVER=root@185.103.252.32
|
||||
PSQL="sudo -u postgres psql"
|
||||
DB=db2026
|
||||
|
||||
scp schema.sql data.sql "$SERVER:/tmp/$DB/"
|
||||
ssh $SERVER \
|
||||
"chmod -R 777 /tmp/$DB;" \
|
||||
"$PSQL -d $DB -e -q -f /tmp/$DB/schema.sql;" \
|
||||
"$PSQL -d $DB -e -q -f /tmp/$DB/data.sql;"
|
||||
source env.sh
|
||||
psql -e -q -f schema.sql
|
||||
psql -e -q -f data.sql
|
||||
|
||||
Reference in New Issue
Block a user