wrap it in an env var and add it to the env file

This commit is contained in:
2023-10-06 18:09:17 -07:00
parent 6160174c5d
commit 7a32edb6e3
Vendored
+2 -2
View File
@@ -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'
}
}
}