wrap it in an env var and add it to the env file
This commit is contained in:
Vendored
+2
-2
@@ -5,9 +5,9 @@ pipeline {
|
||||
stage('Init') {
|
||||
steps {
|
||||
sh 'rbenv local 3.2.2'
|
||||
sh 'ruby secret.rb'
|
||||
sh 'echo \\\'ENV[\\\"APP_SESSION_SECRET\\\"] ||= $(ruby secret.rb)\\\' > .env.rb'
|
||||
//sh 'echo "ENV[\\\"DB_NAME\\\"] ||= \\\"url_shortener.db\\\"" >> .env.rb'
|
||||
//sh 'cat .env.rb'
|
||||
sh 'cat .env.rb'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user