mirror of
https://github.com/kieraneglin/pinchflat.git
synced 2026-01-23 18:35:23 +00:00
* Sets media directory for prod * Improved logging; Added docker files for prod * Improved fetching SECRET_KEY_BASE for selfhosted instances
19 lines
325 B
Bash
Executable file
19 lines
325 B
Bash
Executable file
#!/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
|