2021-08-31 03:38:09 +00:00
|
|
|
SKIP_SERVICES = []
|
|
|
|
|
2021-08-08 13:57:45 +00:00
|
|
|
all:
|
2021-08-31 03:38:09 +00:00
|
|
|
nix-build -A entrypoint \
|
|
|
|
--arg baseConfig '(import ./config.nix)' \
|
|
|
|
--arg baseSkipServices '${SKIP_SERVICES}'
|
|
|
|
|
|
|
|
run: all
|
|
|
|
./result
|
2021-08-08 13:57:45 +00:00
|
|
|
|
|
|
|
all.prod:
|
2021-08-31 03:38:09 +00:00
|
|
|
nix-build -A entrypoint \
|
|
|
|
--arg baseConfig '(import ./prod.config.nix)' \
|
|
|
|
--arg baseSkipServices '${SKIP_SERVICES}'
|
|
|
|
|
|
|
|
run.prod: all.prod
|
|
|
|
./result
|
2021-08-08 13:57:45 +00:00
|
|
|
|
|
|
|
install.prod:
|
|
|
|
nix-build -A install --arg baseConfig '(import ./prod.config.nix)'
|
2021-08-03 23:47:01 +00:00
|
|
|
./result
|
2021-08-08 13:57:45 +00:00
|
|
|
|
|
|
|
srv.shell:
|
|
|
|
nix-shell -A srv.shell --command 'cd srv; return'
|
|
|
|
|
2021-08-08 15:07:51 +00:00
|
|
|
srv.shell.prod:
|
|
|
|
nix-shell -A srv.shell --arg baseConfig '(import ./prod.config.nix)' --command 'cd srv; return'
|
|
|
|
|
2021-08-08 13:57:45 +00:00
|
|
|
static.shell:
|
|
|
|
nix-shell -A static.shell --command 'cd static; return'
|
|
|
|
|
|
|
|
static.serve:
|
|
|
|
nix-shell -A static.shell --run 'cd static; static-serve'
|
|
|
|
|
|
|
|
static.depShell:
|
|
|
|
nix-shell -A static.depShell --command 'cd static; return'
|
|
|
|
|
|
|
|
static.lock:
|
|
|
|
nix-shell -A static.depShell --run 'bundler lock; bundix; rm -rf .bundle vendor'
|