reset the file on the initial append

This commit is contained in:
2023-10-06 13:59:12 -07:00
parent 38f92d83c3
commit 03eafcdf4c
Vendored
+1 -1
View File
@@ -5,7 +5,7 @@ pipeline {
stage('Init') { stage('Init') {
steps { steps {
sh 'rbenv local 3.2.2' sh 'rbenv local 3.2.2'
sh 'echo "ENV[\"APP_SESSION_SECRET"] = \"$(openssl rand -base64 64)\"" >> .env.rb' sh 'echo "ENV[\"APP_SESSION_SECRET"] = \"$(openssl rand -base64 64)\"" > .env.rb'
sh 'echo "ENV[\"DB_NAME\"] ||= \"url_shortener.db\"" >> .env.rb' sh 'echo "ENV[\"DB_NAME\"] ||= \"url_shortener.db\"" >> .env.rb'
sh 'cat .env.rb' sh 'cat .env.rb'
} }