Update setup files
This commit is contained in:
parent
e8b6d97b83
commit
c56db273f1
4 changed files with 26 additions and 11 deletions
|
@ -1,7 +0,0 @@
|
|||
ENV QUICKLISP_HOME=~/quicklisp
|
||||
curl -O https://beta.quicklisp.org/quicklisp.lisp && \
|
||||
sbcl --noinform \
|
||||
--non-interactive \
|
||||
--load quicklisp.lisp \
|
||||
--eval '(quicklisp-quickstart:install :path "$QUICKLISP_HOME")' \
|
||||
--eval '(ql-util:without-prompting (ql:add-to-init-file))'
|
|
@ -1,2 +1,2 @@
|
|||
(in-package :ml-survey)
|
||||
(start-server *app*)
|
||||
(load "~/slime/start-swank.lisp")
|
||||
(ml-survey:start)
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
export APP_HOME=~/quicklisp/local-projects/dev.metalisp.survey
|
||||
sbcl --noinform --core sbcl.core-with-swank --eval '(ml-survey:start-server ml-survey:*app* :document-root (uiop:getenv "APP_HOME"))'
|
||||
sbcl --noinform --core sbcl.core-with-swank --load run-server.lisp
|
||||
|
|
23
setup.sh
Executable file
23
setup.sh
Executable file
|
@ -0,0 +1,23 @@
|
|||
#!/bin/bash
|
||||
check_ubuntu() {
|
||||
if [ -f /etc/os-release ]; then
|
||||
. /etc/os-release
|
||||
if [ "$ID" != "ubuntu" ]; then
|
||||
echo "This script is intended to be run on Ubuntu."
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
echo "Unable to detect the operating system."
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
check_ubuntu
|
||||
|
||||
sudo apt install -y libev4 libsqlite3-dev
|
||||
|
||||
curl https://beta.quicklisp.org/quicklisp.lisp -o ~/quicklisp.lisp
|
||||
|
||||
sbcl --noinform --load quicklisp.lisp --eval "(quicklisp-quickstart:install)" --eval "(ql-util:without-prompting (ql:add-to-init-file))" --non-interactive
|
||||
|
||||
sbcl --noinform --eval "(ql:quickload '(:hunchentoot :drakma :cl-yaml :cl-json :jonathan :cl-ppcre :spinneret :dexador :rove :vecto :woo :cl-dbi :clsql-sqlite3 :mito :bknr.datastore :cl-project))" --non-interactive
|
Loading…
Add table
Reference in a new issue