Formal Works

File List
Login

Files of check-in [9f330ea09a] in directory elixir/site   [history]


Site

A web server for a single local Formal Site.

You can include this in a larger Elixir application, or run it standalone. It is intended to be run with a proxy in front of it.

Installing the Dependencies

Installation

If available in Hex, the package can be installed by adding site to your list of dependencies in mix.exs:

elixir def deps do [ {:site, "~> 0.1.0"} ] end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/site.

Running the App

Run the server for development using this command:

mix run --no-halt

By default the app will run on port 8000, so go to http://localhost:8000 to view the running app.

You may have to create the directory first, and run as sudo the first time to set up the database at /srv/www/host.sqlite3.

sudo mkdir /srv/www sudo mix run --no-halt

Building a Release for Production