Sha256: 0878b8235188d158b3ca72ccd165787613a27bf604d332de80b1cea6e39c2932
Contents?: true
Size: 1.1 KB
Versions: 47
Compression:
Stored size: 1.1 KB
Contents
#!/bin/bash GEM_NAME=${PWD##*/} INSTALL_NAME=${GEM_NAME//cmor_/cmor\:} # Delete old dummy app rm -rf spec/dummy # Generate new dummy app DISABLE_MIGRATE=true rake dummy:app rm spec/dummy/.ruby-version # Satisfy prerequisites cd spec/dummy # Add ActiveStorage rails active_storage:install # I18n configuration touch config/initializers/i18n.rb echo "Rails.application.config.i18n.available_locales = [:en, :de]" >> config/initializers/i18n.rb echo "Rails.application.config.i18n.default_locale = :de" >> config/initializers/i18n.rb # I18n routing touch config/initializers/route_translator.rb echo "RouteTranslator.config do |config|" >> config/initializers/route_translator.rb echo " config.force_locale = true" >> config/initializers/route_translator.rb echo "end" >> config/initializers/route_translator.rb # Install administrador rails generate administrador:install # Install SimpleForm rails generate simple_form:install --bootstrap # Install cmor_core_backend rails g cmor:core:backend:install # Install rails generate $INSTALL_NAME:install rails $GEM_NAME:install:migrations db:migrate db:test:prepare
Version data entries
47 entries across 47 versions & 1 rubygems