Commit 0ee450a9 authored by Marcel Amirault's avatar Marcel Amirault

Merge branch 'docs/fix-railsdb-warning' into 'master'

docs: Fix warning about environment name

See merge request gitlab-org/gitlab!24078
parents 83304ee9 b53842ea
...@@ -470,7 +470,7 @@ step of the sync. ...@@ -470,7 +470,7 @@ step of the sync.
sudo gitlab-rails console sudo gitlab-rails console
# For installations from source # For installations from source
sudo -u git -H bundle exec rails console production sudo -u git -H bundle exec rails console -e production
``` ```
1. Set the log level to debug (only for this session): 1. Set the log level to debug (only for this session):
......
...@@ -966,7 +966,7 @@ To make sure your configuration is correct: ...@@ -966,7 +966,7 @@ To make sure your configuration is correct:
sudo gitlab-rails console sudo gitlab-rails console
# For source installations # For source installations
sudo -u git rails console production sudo -u git rails console -e production
``` ```
1. Run in the console: 1. Run in the console:
......
...@@ -40,7 +40,7 @@ The steps to configure this setting through the Rails console are: ...@@ -40,7 +40,7 @@ The steps to configure this setting through the Rails console are:
sudo gitlab-rails console sudo gitlab-rails console
# For installations from source # For installations from source
sudo -u git -H bundle exec rails console production sudo -u git -H bundle exec rails console -e production
``` ```
1. Update the snippets maximum file size: 1. Update the snippets maximum file size:
......
...@@ -11,13 +11,13 @@ an SMTP server, but you're not seeing mail delivered. Here's how to check the se ...@@ -11,13 +11,13 @@ an SMTP server, but you're not seeing mail delivered. Here's how to check the se
1. Run a Rails console: 1. Run a Rails console:
```shell ```shell
sudo gitlab-rails console production sudo gitlab-rails console -e production
``` ```
or for source installs: or for source installs:
```shell ```shell
bundle exec rails console production bundle exec rails console -e production
``` ```
1. Look at the ActionMailer `delivery_method` to make sure it matches what you 1. Look at the ActionMailer `delivery_method` to make sure it matches what you
......
...@@ -13,7 +13,7 @@ To unlock a locked user: ...@@ -13,7 +13,7 @@ To unlock a locked user:
```shell ```shell
## For Omnibus GitLab ## For Omnibus GitLab
sudo gitlab-rails console production sudo gitlab-rails console -e production
## For installations from source ## For installations from source
sudo -u git -H bundle exec rails console RAILS_ENV=production sudo -u git -H bundle exec rails console RAILS_ENV=production
......
...@@ -64,7 +64,7 @@ migrations are marked complete. ...@@ -64,7 +64,7 @@ migrations are marked complete.
``` ```
# Source install # Source install
sudo -u git -H bundle exec rails console production sudo -u git -H bundle exec rails console -e production
# Omnibus install # Omnibus install
sudo gitlab-rails console sudo gitlab-rails console
......
...@@ -52,10 +52,10 @@ the below rails console script. ...@@ -52,10 +52,10 @@ the below rails console script.
```shell ```shell
# start a rails console: # start a rails console:
sudo gitlab-rails console production sudo gitlab-rails console -e production
# or for source installs: # or for source installs:
bundle exec rails console production bundle exec rails console -e production
``` ```
```ruby ```ruby
......
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