Monorepo for Aesthetic.Computer
aesthetic.computer
1#!/usr/bin/env bash
2
3# set -e # quit after any error
4
5echo "*** -> Resetting Docker State..."
6
7# destroy any existing container
8./reset.sh
9
10echo "*** -> Booting and Building AC..."
11./boot.sh # rebuild the container from cache (or nothing)
12# and start it as a daemon
13
14echo "*** -> Starting a development session..."
15# /emacs.sh # start an emacs session from within the container
16
17# add ssl certificates to the host
18# cd ..;
19# npm run add:ssl;
20# cd micro/machine;
21
22if [ "$1" = "fish" ]; then
23 docker exec --detach-keys='ctrl-z,z' -it aesthetic-container //usr/bin/fish
24else
25 docker exec -it aesthetic-container //usr/bin/fish -c "emacsclient -e '(kill-emacs)'"
26 docker exec -it aesthetic-container //usr/bin/fish -c "emacs --daemon"
27 docker exec --detach-keys='ctrl-z,z' -it aesthetic-container //usr/bin/fish -c "emacsclient -c --eval '(aesthetic-backend (quote \"$1\"))'"
28 # Always jump back to the prompt after quitting emacsclient.
29 # docker exec --detach-keys='ctrl-z,z' -it aesthetic-container //usr/bin/fish
30fi