Monorepo for Aesthetic.Computer aesthetic.computer
at main 20 lines 843 B view raw
1#!/usr/bin/env bash 2 3parentDir=$(dirname $(pwd)) 4cd machine 5if [[ $parentDir =~ ^/[a-zA-Z]/ ]]; then 6 parentDir=$(echo $parentDir | sed 's|^/\([a-zA-Z]\)/|\1:/|') 7fi 8 9if [ -z "$(docker ps -aq -f name=aesthetic-container)" ]; then 10 npm run build && docker run --name aesthetic-container -d -p 8888:8888 -p 8889:8889 -p 8083:8083 \ 11 --hostname aesthetic \ 12 --env-file .env --env-file github.env --env-file netlify.env \ 13 --env-file vercel.env --env-file stripe.env \ 14 -e GIT_USER_EMAIL="$(git config --global user.email)" \ 15 -e GIT_USER_NAME="$(git config --global user.name)" \ 16 -v ~/.ssh:/home/me/.ssh \ 17 -v "${parentDir}/micro/machine/.emacs.d:/home/me/.emacs.d" \ 18 -v "${parentDir}:/home/me/aesthetic-computer" \ 19 --user me -it aesthetic-micro /usr/bin/fish entry.fish 20fi