bard-api 0.6.2 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/bard/api/app.rb +3 -0
- data/lib/bard/api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e51131122902484d133bcaaf0ca3f01abea607acf01b6b89a7459ad99a5afe45
|
|
4
|
+
data.tar.gz: 713e9aac75181d545f6807259a8031c96064b58fc6c02d32e1bdea5f870cc154
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8294f16c4750b0e560ecb26477a24527dbb29a229cec6e200fd6494d2d31b88bccbd3f0041516aeb1db87d36c1361e7bae678a0d66035aead9d92e86983f2716
|
|
7
|
+
data.tar.gz: 445de7f208e078a97efe9ec981556d585540003828c60d07de236ea736edae2433e6f9bc0afee3949a1c56267c407761822186328f427fb157cb05ee4780c75d
|
data/lib/bard/api/app.rb
CHANGED
|
@@ -32,7 +32,10 @@ module Bard
|
|
|
32
32
|
# lockfile with not-yet-installed gems. The deploy must start from a clean env.
|
|
33
33
|
def spawn_detached_deploy(command)
|
|
34
34
|
Bundler.with_unbundled_env do
|
|
35
|
+
# A Passenger web worker is spawned without a login session, so it has no XDG_RUNTIME_DIR;
|
|
36
|
+
# systemd-run --user needs it to find the (linger-backed) user bus at $XDG_RUNTIME_DIR/bus.
|
|
35
37
|
pid = Process.spawn(
|
|
38
|
+
{ "XDG_RUNTIME_DIR" => "/run/user/#{Process.uid}" },
|
|
36
39
|
"systemd-run", "--user", "--scope", "--collect", "--quiet", "bash", "-lc", command,
|
|
37
40
|
:in => "/dev/null", %i[out err] => ["log/bard-deploy.log", "a"],
|
|
38
41
|
)
|
data/lib/bard/api/version.rb
CHANGED