attempting to clean up the .env.rb file

pull/29/head
Adam Townsend 2023-10-22 13:43:12 -07:00
parent 7caf25c4d0
commit 795447e029
1 changed files with 3 additions and 2 deletions

5
Jenkinsfile vendored
View File

@ -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
'''
}
}