Browse Source

update makefile.

stable
Craig Oates 1 year ago
parent
commit
6283918323
  1. 22
      makefile

22
makefile

@ -17,15 +17,20 @@ help:
# Commands for Server
# ==============================================================================
setup:
install:
apt update
apt -y install certbot sbcl rlwrap nginx
apt -y install certbot sbcl rlwrap nginx libev4
curl https://beta.quicklisp.org/quicklisp.lisp
sbcl --load "/usr/share/common-lisp/source/quicklisp/quicklisp.lisp" \
--eval (quicklisp-quickstart:install) \
sbcl --load "/usr/share/common-lisp/source/quicklisp/quicklisp.lisp"
sbcl --eval (quicklisp-quickstart:install) \
--eval (ql:add-to-init-file) \
--quit
@echo 'Setup complete.'
@echo 'Install complete.'
quicklisp-add:
@echo 'Adding project to quicklisp...'
ln -s ~/ritherdon-archive ~/quicklisp/local-projects/
@echo 'Added to quicklisp.'
service:
@echo 'Setting up systemd service... NOT IMPLEMENTED'
@ -39,7 +44,12 @@ http:
systemctl restart nginx
@echo 'ritherdon-archive added to nginx (HTTP only).'
run:
run-prod:
rlwrap $(LISP) --eval '(ql:quickload :ritherdon-archive)' \
--eval '(setf (osicat:environment-variable "APP_ENV") "production")' \
--eval '(ritherdon-archive:main :port 5000)'
run-dev:
rlwrap $(LISP) --eval '(ql:quickload :ritherdon-archive)' \
--eval '(setf (osicat:environment-variable "APP_ENV") "developement")' \
--eval '(ritherdon-archive:main :port 5000)'

Loading…
Cancel
Save