-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
local
executable file
·33 lines (26 loc) · 1.25 KB
/
local
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
shopt -s globstar
# ============================================================================================================
# Jemalloc - SEE: https://jemalloc.net
# ============================================================================================================
jemalloc="/usr/lib/x86_64-linux-gnu/libjemalloc.so.2"
if [ "$(uname -m)" = "x86_64" ] && [ -f "$jemalloc" ]; then
export LD_PRELOAD=$jemalloc
fi
jemalloc="/usr/lib/aarch64-linux-gnu/libjemalloc.so.2"
if [ "$(uname -m)" = "aarch64" ] && [ -f "$jemalloc" ]; then
export LD_PRELOAD=$jemalloc
fi
# ============================================================================================================
# Dependencies
# ============================================================================================================
npm install
npx playwright install chromium --with-deps
bundle install
# ============================================================================================================
# Prepare & Run the Application
# ============================================================================================================
cd test/dummy
rm -rf tmp/pids/*
bin/rails assets:clobber tailwindcss:build
bin/rails server --binding=0.0.0.0 --port=3000