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.
sudo gitlab-rails console
# 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):
......
......@@ -966,7 +966,7 @@ To make sure your configuration is correct:
sudo gitlab-rails console
# For source installations
sudo -u git rails console production
sudo -u git rails console -e production
```
1. Run in the console:
......
......@@ -40,7 +40,7 @@ The steps to configure this setting through the Rails console are:
sudo gitlab-rails console
# 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:
......
......@@ -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:
```shell
sudo gitlab-rails console production
sudo gitlab-rails console -e production
```
or for source installs:
```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
......
......@@ -13,7 +13,7 @@ To unlock a locked user:
```shell
## For Omnibus GitLab
sudo gitlab-rails console production
sudo gitlab-rails console -e production
## For installations from source
sudo -u git -H bundle exec rails console RAILS_ENV=production
......
......@@ -64,7 +64,7 @@ migrations are marked complete.
```
# Source install
sudo -u git -H bundle exec rails console production
sudo -u git -H bundle exec rails console -e production
# Omnibus install
sudo gitlab-rails console
......
......@@ -52,10 +52,10 @@ the below rails console script.
```shell
# start a rails console:
sudo gitlab-rails console production
sudo gitlab-rails console -e production
# or for source installs:
bundle exec rails console production
bundle exec rails console -e production
```
```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