Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
partido-interdimensional-pirata
lumi
api
Commits
c1aae557
Unverified
Commit
c1aae557
authored
Mar 02, 2020
by
fauno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci/cd: usar rails_master_key
parent
9eee218e
Pipeline
#35428
passed with stage
in 1 minute and 19 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
4 deletions
+1
-4
.gitlab-ci.yml
.gitlab-ci.yml
+0
-2
config/deploy.rb
config/deploy.rb
+1
-2
No files found.
.gitlab-ci.yml
View file @
c1aae557
...
...
@@ -12,6 +12,4 @@ deploy_application:
-
echo -e "-----BEGIN OPENSSH PRIVATE KEY-----\n$SSH_PRIVATE_KEY\n-----END OPENSSH PRIVATE KEY-----" | ssh-add -
-
mkdir -p ~/.ssh
-
echo -e "Host *\nVerifyHostKeyDNS yes" > ~/.ssh/config
-
echo "$RAILS_MASTER_KEY" > config/master.key
-
bundle exec cap production deploy
-
rm -f config/master.key
config/deploy.rb
View file @
c1aae557
...
...
@@ -9,13 +9,12 @@ append :linked_dirs, 'log', 'tmp/pids', 'tmp/cache', 'tmp/sockets',
'public/system'
,
'data'
,
'.bundle'
,
'docs'
set
:bundle_flags
,
'--deployment'
set
:bundle_jobs
,
1
set
:bundle_env_variables
,
nokogiri_use_system_libraries:
1
set
:keep_releases
,
2
set
:ssh_options
,
check_host_ip:
true
set
:default_env
,
rails_env:
'production'
,
rails_master_key:
File
.
read
(
'config/master.key'
),
rails_master_key:
ENV
.
fetch
(
'RAILS_MASTER_KEY'
)
{
File
.
read
(
'config/master.key'
)
}
,
web_concurrency:
'1'
,
ld_preload:
'/usr/lib/libjemalloc.so'
...
...
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