mirror of
https://github.com/penpot/penpot.git
synced 2026-02-12 14:42:56 +00:00
📎 Add default env variable for browser executable path.
This commit is contained in:
@@ -5,7 +5,8 @@ ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
ENV LANG=en_US.UTF-8 \
|
||||
LC_ALL=en_US.UTF-8 \
|
||||
NODE_VERSION=v14.17.5
|
||||
NODE_VERSION=v14.17.5 \
|
||||
PENPOT_BROWSER_EXECUTABLE_PATH=/usr/bin/chromium
|
||||
|
||||
RUN set -ex; \
|
||||
mkdir -p /etc/resolvconf/resolv.conf.d; \
|
||||
|
||||
@@ -7,13 +7,13 @@
|
||||
(ns app.config
|
||||
(:refer-clojure :exclude [get])
|
||||
(:require
|
||||
[app.common.data :as d]
|
||||
["process" :as process]
|
||||
[cljs.pprint]
|
||||
[cuerdas.core :as str]
|
||||
[app.common.data :as d]
|
||||
[app.common.spec :as us]
|
||||
[cljs.spec.alpha :as s]
|
||||
[cljs.core :as c]
|
||||
[cljs.pprint]
|
||||
[cljs.spec.alpha :as s]
|
||||
[cuerdas.core :as str]
|
||||
[lambdaisland.uri :as u]))
|
||||
|
||||
(def defaults
|
||||
@@ -22,6 +22,7 @@
|
||||
:browser-concurrency 5
|
||||
:browser-strategy :incognito})
|
||||
|
||||
(s/def ::browser-executable-path ::us/string)
|
||||
(s/def ::public-uri ::us/string)
|
||||
(s/def ::http-server-port ::us/integer)
|
||||
(s/def ::browser-concurrency ::us/integer)
|
||||
@@ -31,7 +32,8 @@
|
||||
(s/keys :opt-un [::public-uri
|
||||
::http-server-port
|
||||
::browser-concurrency
|
||||
::browser-strategy]))
|
||||
::browser-strategy
|
||||
::browser-executable-path]))
|
||||
(defn- read-env
|
||||
[prefix]
|
||||
(let [env (unchecked-get process "env")
|
||||
|
||||
Reference in New Issue
Block a user