Skip to content

Commit 5c5e262

Browse files
committed
added little scripts for kicking off mawl
1 parent 71d3411 commit 5c5e262

File tree

4 files changed

+21
-1
lines changed

4 files changed

+21
-1
lines changed

bin/mawl-generate

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
3+
set -euo pipefail
4+
5+
PROJECT_FOLDER=`realpath $(dirname "$0")/..` && cd "$PROJECT_FOLDER"
6+
7+
PID=$(cat tmp/pids/server.pid 2>/dev/null) && ps -p $PID > /dev/null && kill $PID
8+
./bin/rails s -e production -d && ./bin/rails static:generate

bin/mawl-import

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env bash
2+
3+
set -euo pipefail
4+
5+
PROJECT_FOLDER=`realpath $(dirname "$0")/..` && cd "$PROJECT_FOLDER"
6+
./bin/rails static:import

bin/mawl-import-and-generate

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env bash
2+
3+
set -euo pipefail
4+
5+
PROJECT_FOLDER=`realpath $(dirname "$0")/..` && cd "$PROJECT_FOLDER"
6+
./bin/mawl-import && ./bin/mawl-generate

bin/start-arquivo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ else
4747
fi
4848

4949
export STATIC_PLS=1
50-
DOCKER_COMMAND=bash
50+
DOCKER_COMMAND=/arquivo/bin/mawl-import-and-generate
5151
# DOCKER_COMMAND="./bin/rails server -d && ./bin/rails static:import static:generate"
5252
fi
5353
fi

0 commit comments

Comments
 (0)