We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7090362 commit 7caab4aCopy full SHA for 7caab4a
.devcontainer/devcontainer.json
@@ -6,6 +6,9 @@
6
"remoteEnv": {
7
"DISPLAY": ":0"
8
},
9
+ "containerEnv": {
10
+ "DEVCONTAINER_ENV": "true"
11
+ },
12
// vscode extensions
13
"customizations": {
14
"vscode": {
do
@@ -1,7 +1,11 @@
1
#!/bin/bash
2
3
ROOT=$(dirname $(realpath $BASH_SOURCE[0]))
4
-source $ROOT/bin/setup
+if [ -v DEVCONTAINER_ENV ]; then
5
+ BUNDLE=bundle
+else
+ source $ROOT/bin/setup
+fi
# really long way of invoking rake, but renamed to 'do'
$BUNDLE exec --gemfile $ROOT/Gemfile ruby -r rake -e "Rake.application.init('do');Rake.application.load_rakefile;Rake.application.top_level" -- $@
0 commit comments