Current section
Files
Jump to
Current section
Files
template/$PROJECT_NAME$/bin/update
#!/usr/bin/env bash
#
# Update Script
#
# Pulls down from the git repository and runs all commands needed to update
# the local development app.
git pull || { echo 'Could not pull from origin.'; exit 1; }
mix deps.get || { echo 'Could not update dependencies.'; exit 1; }
mix compile || { echo 'Could not compile app.'; exit 1; }
<%= if assigns[:ecto] do %>
mix ecto.migrate || { echo 'Migrations failed!'; exit 1; }
<% end %>
echo "Update complete!"