ogres
ogres copied to clipboard
[documentation] Dev documentation does not give instructions on how to create release app.js
Following the readme does not give me a successful app launch. I get a 404 in my console for the release app.js
I don't know much about Clojure, but I was able to get it using the following:
export VERSION=latest # e.g.
export OUTPUT_DIR="web/release/${VERSION}"
export ASSET_PATH="release/${VERSION}"
mkdir -p "$OUTPUT_DIR"
clojure -M -m shadow.cljs.devtools.cli release app \
--config-merge "{:closure-defines {ogres.app.const/VERSION \"${VERSION}\" ogres.app.const/PATH \"/${ASSET_PATH}\" ogres.app.const/SOCKET-URL \"wss://ogres.app/ws\"}}"
cp web/release/icons.svg "$OUTPUT_DIR/"
cp web/release/ogres.app.css "$OUTPUT_DIR/"
and then npm start
Theres not a lot of documentation on building and deploying the app in production. There are several scripts in bin which may help you understand some of the moving pieces involved, but they are very specific to my own deployment strategy.
Deploying with Docker will most likely be the easiest way to move forward with independent deployments.