Skip to content

Commit fedc8d6

Browse files
author
Test
committed
remove not needed entry points.. make sure credentials stay even after restarts
1 parent b27ac5e commit fedc8d6

5 files changed

Lines changed: 12 additions & 40 deletions

File tree

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.19-alpha
1+
1.0.20-alpha

config/credentials.yml.enc

Lines changed: 0 additions & 1 deletion
This file was deleted.

entrypoint.sh

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,24 @@ if [ -z "$SECRET_KEY_BASE" ]; then
77
export SECRET_KEY_BASE=$(bin/rails secret)
88
fi
99

10-
echo "Running bundle exec rake assets:precompile"
10+
if [ -f storage/credentials.yml.enc ]; then
11+
if [ ! -f config/credentials.yml.enc ]; then
12+
cp storage/credentials.yml.enc config/credentials.yml.enc
13+
fi
14+
else
15+
EDITOR=sed rails credentials:edit --environment production
16+
cp config/credentials.yml.enc storage/credentials.yml.enc
17+
fi
18+
19+
20+
echo "Remove PID"
1121
rm -f /app/tmp/pids/server.pid
1222
echo "Running bundle exec rake assets:precompile"
1323
bundle exec rake assets:precompile RAILS_ENV=production
1424
echo "Running bundle exec rails db:migrate RAILS_ENV=production"
1525
bundle exec rails db:migrate RAILS_ENV=production
1626

1727
# Start Sidekiq worker in the background
18-
./sidekiq-entrypoint.sh &
1928
bundle exec sidekiq &
2029

2130

rails-entrypoint.sh

Lines changed: 0 additions & 21 deletions
This file was deleted.

sidekiq-entrypoint.sh

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)