You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,9 @@ A discourse container config file is created when a discourse app is created. Th
58
58
59
59
You can edit the config at `/home/dokku/APP_NAME/discourse_standalone.yml`. Don't make any changes to the `volumes` section, but feel free to change anything else.
60
60
61
+
Warning: The env part is overrided by dokku-discourse plugin. If you want to use custom configuration, and skip this override, please use the following syntaxe :
62
+
`dokku discourse:create <app> <hostname to listen> --skip-env-config`
63
+
61
64
After making change be sure to run `dokku discourse:create <app>` to rebuild and re-deploy the discourse app.
# RUN_ARGS will be a string in form "+ true run --shm-size=512m -d --restart=always -e LANG=en_US.UTF-8 -e RAILS_ENV=production" etc
180
181
# We want to extract the env vars from the string and produce a new string in form "ENV=var ENV2=var"
181
182
# 1. We use grep to extract the "-e ENV=var" strings
182
-
# 2. grep will give us newlines, so we convert those to spaces using tr
183
-
# 3. Next we use sed to remove "-e" flags as well as multiple consecutive whitespace chars
184
-
# 4. Finally we use sed to trim leading and trailing spaces
185
-
echo"$RUN_ARGS"| grep -Po '[[:space:]]-e[[:space:]]*[^[:space:]]+'| tr "\n""\t"| sed -r "s/\s+\-e\s+|\s+/ /g"| sed -r 's/^\s*|\s*$//g'
183
+
# 2. Next we use sed to remove "-e" flags
184
+
# 3. Then we use sed to remove leading and trailing single quote if exists (docker env escaping strategy)
185
+
# 4. grep will give us newlines, so we convert those to spaces using tr
186
+
# 5. Finally we use sed to trim leading and trailing spaces
187
+
echo"$RUN_ARGS"| grep -Po '[[:space:]]-e[[:space:]]*[^[:space:]]+'| sed -r "s/\s+\-e\s+//g"| sed -r 's/^\x27|\x27$//g'| tr '\n'''| sed -r 's/^\s*|\s*$//g'
0 commit comments