Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gitlab
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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
certo
gitlab
Commits
4e211a33
Commit
4e211a33
authored
Aug 17, 2021
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
We should fix application_settings before we shutdown postgres
parent
613cd5fe
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
Makefile
Makefile
+2
-3
No files found.
Makefile
View file @
4e211a33
...
...
@@ -91,6 +91,8 @@ all: database-config resque-yml nginx-conf
sudo
-u
git
-H
sh
-c
"/srv/gitlab/bin/daemon_with_pidfile /run/gitlab/gitaly.pid /srv/gitaly/gitaly /srv/gitaly/config.toml >> /srv/gitlab/log/gitaly.log 2>&1 &"
cd /srv/gitlab && sudo -u git -H bundle exec rake gitlab
:
setup RAILS_ENV=production force=yes
cd
/srv/gitlab
&&
sudo
-u
git
-H
HOME
=
$(CURDIR)
/gitlab-home
PATH
=
$$
PATH:
$(CURDIR)
/../go/go/bin
GOCACHE
=
$(CURDIR)
/gitlab-home/gocache bundle
exec
rake gitlab:env:info
RAILS_ENV
=
production
cd
/srv/gitlab
&&
sudo
-u
git
-H
mv
-f
config/secrets.yml.example config/secrets.yml
sudo
-u
git psql
-d
gitlabhq_production
-c
"UPDATE application_settings SET runners_registration_token_encrypted = null;"
sudo
-u
postgres /usr/bin/pg_ctl
-s
-D
/srv/pgsql/data stop
-m
fast
sudo
-u
git /usr/bin/redis-cli shutdown nosave
...
...
@@ -107,9 +109,6 @@ all: database-config resque-yml nginx-conf
sed
-e
"s/\$$app_root\/tmp\/pids/\/run\/gitlab/"
-i
/etc/default/gitlab
systemctl
enable
gitlab.service
cd
/srv/gitlab
&&
sudo
-u
git
-H
mv
-f
config/secrets.yml.example
config/secrets.yml
sudo
-u
git
psql
-d
gitlabhq_production
-c
"UPDATE application_settings SET runners_registration_token_encrypted = null;"
rm
-rf
/usr/local/share/.yarnrc
/bin/sh
cleanup
gitlab
dev
doc
git
tests
cache
ports
man
patches
node_modules
windows
macos
bytecode
maps
packed_assets
...
...
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