philomena/vagrant/app_setup.bash

20 lines
302 B
Bash
Raw Normal View History

2019-08-15 02:32:32 +02:00
#!/usr/bin/env bash
# Install Hex and Phoenix
mix local.hex --force
mix local.rebar --force
mix archive.install hex phx_new 1.4.3 --force
# Enter app dir
cd $1
# Install dependencies
mix deps.get
mix deps.compile
# Set up database
mix ecto.setup --force
# Install modules
(cd assets; npm install)