1
0
mirror of https://github.com/JustKato/FreePad.git synced 2026-04-17 08:38:47 +03:00
Files
FreePad/rundev.sh
Kato Twofold 48cacb601d Stable Migrations 1.1.0
+ Finally implemented stable migrations for mysql
2022-05-17 23:51:12 +03:00

25 lines
450 B
Bash
Executable File

#!/bin/bash
echo "Removing old";
rm dist/freepad;
# Yeah, this is my solution
export DOMAIN_BASE CACHE_MAP_LIMIT API_BAN_LIMIT DATABASE_DRIVER MYSQL_ROOT_PASSWORD MYSQL_DATABASE MYSQL_USER MYSQL_PASSWORD MYSQL_URL MYSQL_PORT
# Remember current path
MYDIR=`pwd`;
# Go into src
cd src;
# Build
echo "Building..."
unset RELEASE_MODE;
go build -o ../dist/freepad .
# Go back!
cd $MYDIR;
MYPATH=`pwd`;
cd dist
source ../.env
./freepad && cd $MYPATH;