Prod packaging v1 (#23)

* Sets media directory for prod

* Improved logging; Added docker files for prod

* Improved fetching SECRET_KEY_BASE for selfhosted instances
This commit is contained in:
Kieran
2024-02-16 11:50:00 -08:00
committed by GitHub
parent 8fcd41f45d
commit fab77f4deb
13 changed files with 234 additions and 16 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/bin/sh
set -e
# Ensure the app's deps are installed
mix deps.get
# Install JS deps
echo "\nInstalling JS..."
cd assets && yarn install
cd ..
# Potentially Set up the database
mix ecto.create
mix ecto.migrate
# Start the phoenix web server (interactive)
echo "\n Launching Phoenix web server..."
iex -S mix phx.server