bin/docker/run/local
#!/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