Sha256: 0711c7f16c1dc6a2b946f3534aab3aaf25d8a3e2f5c8ab9b03135f8e5deee7de

Contents?: true

Size: 966 Bytes

Versions: 3

Compression:

Stored size: 966 Bytes

Contents

<% if ruby_version.include? 'alpine' %>#!/usr/bin/env sh<% else %>#!/usr/bin/env bash<% end %>

<% if DRConfig.linked_database? %>
  <% if databases.values.include?('mysql') || databases.values.include?('postgres') %>
echo "Waiting for database server to start properly ..." && sleep 20
  <% end %>
<% end %>

<% if application_env == 'production' || application_env == 'staging' %>
RAILS_ENV=<%= application_env %> bundle exec rake assets:precompile
<% elsif application_env == 'development' %>
<% elsif application_env == 'test' %>
echo "Rails application can not be running in 'test' environment"
exit 1
<% else %>
echo "Unknown environment '<%= application_env %>'"
exit 1
<% end %>

RAILS_ENV=<%= application_env %> bundle exec rake db:create

RAILS_ENV=<%= application_env %> bundle exec rake db:migrate

RAILS_ENV=<%= application_env %> bundle exec rake db:seed

RAILS_ENV=<%= application_env %> bundle exec rails server -b 0.0.0.0 -p <%= application_port %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dockerize_rails-1.0.3.beta.3 resources/rails/entry-point.sh.erb
dockerize_rails-1.0.3.beta.2 resources/rails/entry-point.sh.erb
dockerize_rails-1.0.3.beta.1 resources/rails/entry-point.sh.erb