Better backend launching
This commit is contained in:
38
README.org
38
README.org
@@ -54,18 +54,39 @@
|
||||
This is everything you need for beautiful org-generated websites.
|
||||
|
||||
*** Running locally
|
||||
You could install Dart on your machine, as well as the Ruby implementation
|
||||
of SASS with its dependencies. Then, all you have to do is run ~start.sh~,
|
||||
and you’re good to go! Content will be delivered on the 8080 port. If you
|
||||
wish to deliver content to another port, you can edit this file.
|
||||
You could install Dart on your machine, as well as the Ruby implementation
|
||||
of SASS with its dependencies. Next, you will need to install ~webdev~ and
|
||||
install the Dart dependencies:
|
||||
#+BEGIN_SRC sh
|
||||
$ pub global activate webdev
|
||||
$ pub get
|
||||
#+END_SRC
|
||||
|
||||
By the way, you have to ensure your Dart cache’s bins are in your ~$PATH~.
|
||||
They are generally installed in your ~$HOME/.pub-cache/bin~ directory.
|
||||
|
||||
Then, you have to run ~start.sh~, and you’re good to go! Content will be
|
||||
delivered on the 8080 port. If you wish to deliver content to another port,
|
||||
you can edit this file.
|
||||
#+BEGIN_SRC sh
|
||||
# Release mode
|
||||
RELEASE="release" ./start.sh
|
||||
|
||||
# Debug mode
|
||||
./start.sh
|
||||
#+END_SRC
|
||||
|
||||
*** Docker
|
||||
A Dockerfile is also provided so you can run this server inside a Docker
|
||||
container, and thus you can avoid the hassle of installing Dart and Ruby
|
||||
Sass. In order to run OWB, you can run the following:
|
||||
Sass. In order to run OWB, you can first build the Docker image:
|
||||
#+BEGIN_SRC sh
|
||||
$ docker build . --tag owb:1.0
|
||||
$ docker run \
|
||||
docker build . --tag owb:1.0
|
||||
#+END_SRC
|
||||
|
||||
And then you can run it:
|
||||
#+BEGIN_SRC sh
|
||||
docker run \
|
||||
-p 8080:8080 \
|
||||
-e RELEASE="release" \
|
||||
--restart always \
|
||||
@@ -79,10 +100,9 @@
|
||||
filesystem. This will also make ~webserver~ run in development mode; expect
|
||||
shorter Dart compilation time, but slower Dart code execution.
|
||||
#+BEGIN_SRC sh
|
||||
$ docker run \
|
||||
docker run \
|
||||
-p 8080:8080 \
|
||||
-v ./web:/app/web \
|
||||
-e RELEASE="debug" \
|
||||
--restart always \
|
||||
--detach \
|
||||
--name owb \
|
||||
|
||||
Reference in New Issue
Block a user