Browse Source

update makefile.

stable
Craig Oates 2 years ago
parent
commit
6283918323
  1. 22
      makefile

22
makefile

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