Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions app/linux-clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ rm -rf external/build

echo "Cleaning out BEAM distribution..."
rm -rf server/beam/tau/_build
rm -rf server/beam/tau/priv/static/assets
rm -rf server/beam/tau/priv/*.{so,dylib,dll}
rm -rf server/beam/tau/priv/static/cache_manifest.json
find . -path './server/beam/tau/priv/static/*' -name '*.gz' -delete
find . -path './server/beam/tau/priv/static/*' -name '*-????????????????????????????????.*' -delete
if [ "$MIX_ENV" == dev ]; then
rm -rf server/beam/tau/priv/static/assets
rm -rf server/beam/tau/priv/static/cache_manifest.json
find . -path './server/beam/tau/priv/static/*' -name '*.gz' -delete
find . -path './server/beam/tau/priv/static/*' -name '*-????????????????????????????????.*' -delete
fi

echo "Cleaning completed"

Expand Down
8 changes: 4 additions & 4 deletions app/linux-pre-tau-dev-init.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ set -e # Quit script on error
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
WORKING_DIR="$(pwd)"

MIX_ENV=prod mix local.hex --force
MIX_ENV=prod mix local.rebar --force
MIX_ENV=prod mix deps.get
MIX_ENV=dev mix local.hex --force
MIX_ENV=dev mix local.rebar --force
MIX_ENV=dev mix deps.get
MIX_ENV=dev mix tailwind.install
MIX_ENV=dev mix esbuild.install

MIX_ENV=dev mix assets.deploy.prod

# Restore working directory as it was prior to this script running...
cd "${WORKING_DIR}"
2 changes: 1 addition & 1 deletion app/linux-pre-tau-prod-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ echo "Compiling Erlang/Elixir files..."
cd "${SCRIPT_DIR}"/server/beam/tau

if [ "$offline_build" == true ]; then
MIX_ENV=prod mix assets.deploy.prod
MIX_ENV=prod mix deps.compile
MIX_ENV=prod mix release --overwrite --no-deps-check
else
MIX_ENV=prod mix local.hex --force
Expand Down
Empty file modified app/mac-pre-tau-dev-init.sh
100644 → 100755
Empty file.
Empty file modified app/pi-pre-tau-dev-init.sh
100644 → 100755
Empty file.
7 changes: 0 additions & 7 deletions app/server/beam/tau/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ tau-*.tar

# Temporary files, for example, from tests.
/tmp/
# Ignore assets that are produced by build tools.
/priv/static/assets/

# Ignore digested assets cache.
/priv/static/cache_manifest.json

# In case you use Node.js/npm, you want to ignore these.
npm-debug.log
Expand All @@ -38,7 +33,5 @@ npm-debug.log
/priv/*.so
/priv/*.dylib
/priv/*.dll
/priv/static/**/*.gz
/priv/static/**/*-????????????????????????????????.*
/ebin/*
/log/*
2 changes: 1 addition & 1 deletion app/server/beam/tau/assets/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = {
content: [
"../lib/*_web/**/*.*ex",
"./js/**/*.js",
"../deps/petal_components/**/*.*ex",
(process.env.MIX_DEPS_PATH || "../deps") + "/petal_components/**/*.*ex",
],
theme: {
extend: {
Expand Down
1 change: 0 additions & 1 deletion app/server/beam/tau/boot-lin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ elif [ $TAU_ENV = "test" ]
then
export TAU_MIDI_ENABLED=false
export TAU_LINK_ENABLED=false
mix assets.deploy.dev
mix run --no-halt > log/tau_stdout.log 2>&1
else
echo "Unknown TAU_ENV ${TAU_ENV} - expecting one of prod, dev or test."
Expand Down
1 change: 0 additions & 1 deletion app/server/beam/tau/boot-mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ elif [ $TAU_ENV = "test" ]
then
export TAU_MIDI_ENABLED=false
export TAU_LINK_ENABLED=false
mix assets.deploy.dev
mix run --no-halt > log/tau_stdout.log 2>&1
else
echo "Unknown TAU_ENV ${TAU_ENV} - expecting one of prod, dev or test."
Expand Down
1 change: 0 additions & 1 deletion app/server/beam/tau/boot-win.bat
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,5 @@ IF "%TAU_ENV%" == "dev" (
IF "%TAU_ENV%" == "test" (
set TAU_MIDI_ENABLED=false
set TAU_LINK_ENABLED=false
mix assets.deploy.dev
mix run --no-halt > log\tau_stdout.log 2>&1
)
10 changes: 6 additions & 4 deletions app/win-clean.bat
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ rmdir external\build /s /q

@echo Cleaning out BEAM distribution....
rmdir server\beam\tau\_build /s /q
rmdir server\beam\tau\priv\static\assets /s /q
del server\beam\tau\priv\*.so server\beam\tau\priv\*.dylib server\beam\tau\priv\*.dll /s /q
del server\beam\tau\priv\static\cache_manifest.json /s /q
del server\beam\tau\priv\static\*.gz /s /q
del server\beam\tau\priv\static\*-????????????????????????????????.* /s /q
if %MIX_ENV%=="dev" (
rmdir server\beam\tau\priv\static\assets /s /q
del server\beam\tau\priv\static\cache_manifest.json /s /q
del server\beam\tau\priv\static\*.gz /s /q
del server\beam\tau\priv\static\*-????????????????????????????????.* /s /q
)

@echo Cleaning completed

Expand Down
1 change: 1 addition & 0 deletions app/win-pre-tau-dev-init.bat
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ cmd /c mix local.rebar --force
cmd /c mix deps.get
cmd /c mix tailwind.install
cmd /c mix esbuild.install
cmd /c mix assets.deploy.prod

cd %WORKING_DIR%