Commit 32728831 authored by Tom Atkins's avatar Tom Atkins

Merge branch 'patch-200' into 'master'

Add full path note to rails runner command line

See merge request gitlab-org/gitlab!37580
parents 2bcfaf6d 038c4f08
...@@ -73,7 +73,7 @@ sudo gitlab-rails runner "RAILS_COMMAND" ...@@ -73,7 +73,7 @@ sudo gitlab-rails runner "RAILS_COMMAND"
# Example with a two-line Ruby script # Example with a two-line Ruby script
sudo gitlab-rails runner "user = User.first; puts user.username" sudo gitlab-rails runner "user = User.first; puts user.username"
# Example with a ruby script file # Example with a ruby script file (make sure to use the full path)
sudo gitlab-rails runner /path/to/script.rb sudo gitlab-rails runner /path/to/script.rb
``` ```
...@@ -85,7 +85,7 @@ sudo -u git -H bundle exec rails runner -e production "RAILS_COMMAND" ...@@ -85,7 +85,7 @@ sudo -u git -H bundle exec rails runner -e production "RAILS_COMMAND"
# Example with a two-line Ruby script # Example with a two-line Ruby script
sudo -u git -H bundle exec rails runner -e production "user = User.first; puts user.username" sudo -u git -H bundle exec rails runner -e production "user = User.first; puts user.username"
# Example with a ruby script file # Example with a ruby script file (make sure to use the full path)
sudo -u git -H bundle exec rails runner -e production /path/to/script.rb sudo -u git -H bundle exec rails runner -e production /path/to/script.rb
``` ```
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment