2021-06-15 21:26:51 +00:00
|
|
|
#!/bin/bash
|
2020-07-02 21:08:53 +00:00
|
|
|
|
|
|
|
set -x
|
|
|
|
set -e
|
|
|
|
|
2021-06-10 17:45:09 +00:00
|
|
|
DIR_PATH=$(dirname $0)
|
2020-07-02 21:08:53 +00:00
|
|
|
|
|
|
|
$DIR_PATH/bootstrap
|
|
|
|
|
2021-02-16 22:22:29 +00:00
|
|
|
ORIGIN=`git remote get-url origin || echo ''`
|
|
|
|
FRAMEWORK=`git remote get-url framework || echo ''`
|
|
|
|
|
|
|
|
if [ "$ORIGIN" == 'git@gitlab.com:mythic-insight/legendary.git' ] && [ "$FRAMEWORK" != 'git@gitlab.com:mythic-insight/legendary.git' ]; then
|
2021-02-20 18:47:30 +00:00
|
|
|
echo "Removing Legendary repo as 'origin' remote"
|
|
|
|
git remote remove origin
|
|
|
|
fi;
|
|
|
|
|
|
|
|
if [ "$FRAMEWORK" != 'git@gitlab.com:mythic-insight/legendary.git' ]; then
|
2021-02-16 22:22:29 +00:00
|
|
|
echo "Setting Legendary repo as 'framework' remote"
|
|
|
|
git remote add framework git@gitlab.com:mythic-insight/legendary.git
|
|
|
|
fi;
|
|
|
|
|
2020-07-02 21:08:53 +00:00
|
|
|
mix deps.get
|
2021-08-05 03:05:13 +00:00
|
|
|
mix deps.compile
|
2020-07-04 02:41:01 +00:00
|
|
|
mix npm.install
|
2020-07-28 15:54:24 +00:00
|
|
|
mix ecto.create
|
|
|
|
mix ecto.migrate
|