mirror of
https://github.com/clearlinux/docs.git
synced 2026-08-31 02:46:51 +00:00
Replace $(pwd) with $PWD
This commit is contained in:
+2
-2
@@ -42,7 +42,7 @@ The `onbuid` tag expects a `Gemfile.lock` in your app directory. This `docker
|
||||
run` will help you generate one. Run it in the root of your app, next to the
|
||||
`Gemfile`:
|
||||
|
||||
docker run --rm -v "$(pwd)":/usr/src/app -w /usr/src/app jruby:1.7 bundle install --system
|
||||
docker run --rm -v "$PWD":/usr/src/app -w /usr/src/app jruby:1.7 bundle install --system
|
||||
|
||||
## Run a single Ruby script
|
||||
|
||||
@@ -50,4 +50,4 @@ For many simple, single file projects, you may find it inconvenient to write a
|
||||
complete `Dockerfile`. In such cases, you can run a Ruby script by using the
|
||||
Ruby Docker image directly:
|
||||
|
||||
docker run -it --rm --name my-running-script -v "$(pwd)":/usr/src/myapp -w /usr/src/myapp jruby:1.7 jruby your-daemon-or-script.rb
|
||||
docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp jruby:1.7 jruby your-daemon-or-script.rb
|
||||
|
||||
Reference in New Issue
Block a user