This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2020-10-13 12:49:08 -07:00
|
|
|
include .env.dist
|
|
|
|
-include .env
|
|
|
|
|
|
|
|
KEYS_DIR=./keys
|
|
|
|
|
2020-07-22 13:19:23 -07:00
|
|
|
install:
|
2020-10-13 12:49:08 -07:00
|
|
|
-cp -n .env.dist .env
|
|
|
|
if [ ! -d "${KEYS_DIR}" ]; then mkdir -p ${KEYS_DIR}; openssl genrsa -out ${KEYS_DIR}/private.pem 2048; openssl rsa -in ${KEYS_DIR}/private.pem -outform PEM -pubout -out ${KEYS_DIR}/public.pem; fi
|
2020-07-22 13:19:23 -07:00
|
|
|
yarn
|
2020-10-12 02:46:26 -07:00
|
|
|
node server/migrate.js
|
2020-07-22 13:19:23 -07:00
|
|
|
|
|
|
|
run:
|
|
|
|
yarn dev
|
|
|
|
|
|
|
|
start:
|
|
|
|
node_modules/.bin/avris-daemonise start webserver yarn dev
|
|
|
|
|
|
|
|
stop:
|
|
|
|
node_modules/.bin/avris-daemonise stop webserver
|
|
|
|
|
|
|
|
deploy: install
|
|
|
|
yarn build
|
2020-10-12 02:46:26 -07:00
|
|
|
node server/migrate.js
|
2021-04-18 12:19:33 -07:00
|
|
|
echo "\nimportScripts('https://arc.io/arc-sw-core.js');" >> static/sw.js
|
2021-08-22 00:42:46 -07:00
|
|
|
ln -sfn ../data/img ./static/img-local
|
2021-09-30 09:34:22 -07:00
|
|
|
ln -sfn ../data/docs ./static/docs-local
|
2020-09-28 11:11:51 -07:00
|
|
|
|
|
|
|
switch:
|
2021-06-23 10:25:56 -07:00
|
|
|
rm -rf cache
|
2021-08-22 00:17:16 -07:00
|
|
|
ln -sfn ./locale/${LANG} ./data
|
2021-09-30 09:34:22 -07:00
|
|
|
ln -sfn ../locale/${LANG}/img ./static/img-local
|
|
|
|
ln -sfn ../locale/${LANG}/docs ./static/docs-local
|