legendary-doc-site/script/update

28 lines
681 B
Text
Raw Permalink Normal View History

#!/bin/bash
2020-07-02 21:08:53 +00:00
set -x
set -e
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
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
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