generated from coop-cloud/example
19 lines
410 B
Bash
Executable File
19 lines
410 B
Bash
Executable File
#!/bin/bash
|
|
|
|
function show_help () {
|
|
echo "usage: ./first_deploy.sh [app name]"
|
|
}
|
|
|
|
if [[ $1 == "" ]]; then
|
|
show_help
|
|
exit 1
|
|
fi
|
|
|
|
app=$1
|
|
|
|
abra app run $app app /go/cmd/writefreely/writefreely --init-db
|
|
passwd=`abra app run $app db cat /run/secrets/db_password`
|
|
echo 'ALTER TABLE `oauth_users` MODIFY `access_token` varchar(2048)' | abra app run $app db mysql -u writeas -p$passwd writefreely
|
|
|
|
exit 0
|