From 795447e02902b36ed3a41f414d7ba7c33c9ac5a9 Mon Sep 17 00:00:00 2001 From: Adam Townsend Date: Sun, 22 Oct 2023 13:43:12 -0700 Subject: [PATCH] attempting to clean up the .env.rb file --- Jenkinsfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c550736..51fe251 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,8 +9,9 @@ pipeline { steps { sh ''' #!/usr/local/bin/bash rbenv local 3.2.2 - echo "ENV[\\\"APP_SESSION_SECRET\\\"] ||= $(ruby -rsecurerandom -e 'puts SecureRandom.base64(64).inspect()')" > .env.rb - echo "ENV[\\\"DB_NAME\\\"] ||= \\\"${DB_NAME}\\\"" >> .env.rb + echo "# frozen_string_literal: true\n" > env.rb + echo "ENV[\\\'APP_SESSION_SECRET\\\'] ||= \\\'$(ruby -rsecurerandom -e 'puts SecureRandom.base64(64)')\\\'" >> .env.rb + echo "ENV[\\\'DB_NAME\\\'] ||= \\\'${DB_NAME}\\\'" >> .env.rb ''' } }