Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
3f291fe4
Commit
3f291fe4
authored
Apr 15, 2020
by
Marcel Amirault
Committed by
Toon Claes
Apr 15, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change CLI to -e for environment
Using RAILS_ENV is deprecated, so we need to change to -e in our examples.
parent
71c834ef
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
12 additions
and
12 deletions
+12
-12
doc/administration/job_artifacts.md
doc/administration/job_artifacts.md
+1
-1
doc/administration/job_logs.md
doc/administration/job_logs.md
+1
-1
doc/administration/troubleshooting/navigating_gitlab_via_rails_console.md
...on/troubleshooting/navigating_gitlab_via_rails_console.md
+1
-1
doc/development/database_debugging.md
doc/development/database_debugging.md
+2
-2
doc/development/import_project.md
doc/development/import_project.md
+1
-1
doc/integration/sourcegraph.md
doc/integration/sourcegraph.md
+1
-1
doc/raketasks/backup_restore.md
doc/raketasks/backup_restore.md
+3
-3
doc/security/unlock_user.md
doc/security/unlock_user.md
+1
-1
doc/user/project/merge_requests/merge_request_approvals.md
doc/user/project/merge_requests/merge_request_approvals.md
+1
-1
No files found.
doc/administration/job_artifacts.md
View file @
3f291fe4
...
...
@@ -353,7 +353,7 @@ you can flip the feature flag from a Rails console.
```
shell
cd
/home/git/gitlab
RAILS_ENV
=
production
sudo
-u
git
-H
bundle
exec
rails console
sudo
-u
git
-H
bundle
exec
rails console
-e
production
```
1.
Flip the switch and disable it:
...
...
doc/administration/job_logs.md
View file @
3f291fe4
...
...
@@ -106,7 +106,7 @@ gitlab-rails console
# Installation from source
cd
/home/git/gitlab
sudo
-u
git
-H
bin/rails console
RAILS_ENV
=
production
sudo
-u
git
-H
bin/rails console
-e
production
```
**To check if incremental logging (trace) is enabled:**
...
...
doc/administration/troubleshooting/navigating_gitlab_via_rails_console.md
View file @
3f291fe4
...
...
@@ -30,7 +30,7 @@ sudo gitlab-rails console
For source installations, you'll have to instead run:
```
shell
sudo
-u
git
-H
bundle
exec
rails console
RAILS_ENV
=
production
sudo
-u
git
-H
bundle
exec
rails console
-e
production
```
Further code examples will all take place inside the Rails console and also
...
...
doc/development/database_debugging.md
View file @
3f291fe4
...
...
@@ -41,8 +41,8 @@ Access the database via one of these commands (they all get you to the same plac
```
ruby
gdk
psql
-
d
gitlabhq_development
bundle
exec
rails
dbconsole
RAILS_ENV
=
development
bundle
exec
rails
db
RAILS_ENV
=
development
bundle
exec
rails
dbconsole
-
e
development
bundle
exec
rails
db
-
e
development
```
-
`\q`
: Quit/exit
...
...
doc/development/import_project.md
View file @
3f291fe4
...
...
@@ -78,7 +78,7 @@ The last option is to import a project using a Rails console:
gitlab-rails console
# For installations from source
sudo
-u
git
-H
bundle
exec
rails console
RAILS_ENV
=
production
sudo
-u
git
-H
bundle
exec
rails console
-e
production
```
1.
Create a project and run
`Project::TreeRestorer`
:
...
...
doc/integration/sourcegraph.md
View file @
3f291fe4
...
...
@@ -42,7 +42,7 @@ gitlab-rails console
# Installation from source
cd
/home/git/gitlab
sudo
-u
git
-H
bin/rails console
RAILS_ENV
=
production
sudo
-u
git
-H
bin/rails console
-e
production
```
Then run the following command to enable the feature flag:
...
...
doc/raketasks/backup_restore.md
View file @
3f291fe4
...
...
@@ -947,7 +947,7 @@ backup beforehand.
For installations from source:
```
shell
sudo
-u
git
-H
bundle
exec
rails dbconsole
RAILS_ENV
=
production
sudo
-u
git
-H
bundle
exec
rails dbconsole
-e
production
```
1.
Check the
`ci_group_variables`
and
`ci_variables`
tables:
...
...
@@ -982,7 +982,7 @@ backup beforehand.
For installations from source:
```
shell
sudo
-u
git
-H
bundle
exec
rails dbconsole
RAILS_ENV
=
production
sudo
-u
git
-H
bundle
exec
rails dbconsole
-e
production
```
1.
Clear all the tokens for projects, groups, and the whole instance:
...
...
@@ -1015,7 +1015,7 @@ backup beforehand.
For installations from source:
```
shell
sudo
-u
git
-H
bundle
exec
rails dbconsole
RAILS_ENV
=
production
sudo
-u
git
-H
bundle
exec
rails dbconsole
-e
production
```
1.
Clear all the tokens for pending jobs:
...
...
doc/security/unlock_user.md
View file @
3f291fe4
...
...
@@ -16,7 +16,7 @@ To unlock a locked user:
sudo
gitlab-rails console
-e
production
## For installations from source
sudo
-u
git
-H
bundle
exec
rails console
RAILS_ENV
=
production
sudo
-u
git
-H
bundle
exec
rails console
-e
production
```
1.
Find the user to unlock. You can search by email or ID.
...
...
doc/user/project/merge_requests/merge_request_approvals.md
View file @
3f291fe4
...
...
@@ -277,7 +277,7 @@ gitlab-rails console
# Installation from source
cd
/home/git/gitlab
sudo
-u
git
-H
bin/rails console
RAILS_ENV
=
production
sudo
-u
git
-H
bin/rails console
-e
production
```
Then run
`Feature.enable(:approval_rules)`
to enable the updated interface.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment