You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
snogrammer 86ee5b3016 Merge pull request 'ruby-2-7-rails-6-1' (#1) from ruby-2-7-rails-6-1 into master 2 months ago
app upgrade ruby, rails, gems, packages 2 months ago
bin upgrade ruby, rails, gems, packages 2 months ago
config upgrade ruby, rails, gems, packages 2 months ago
db upgrade ruby, rails, gems, packages 2 months ago
lib update views, mailers, styles, etc. 10 months ago
log initial project setup with rails, devise, activeadmin, webpacker, docker, stimulusjs, bulma. 11 months ago
public update views, mailers, styles, etc. 10 months ago
script upgrade ruby, rails, gems, packages 2 months ago
spec add rspec to template. 11 months ago
tmp initial project setup with rails, devise, activeadmin, webpacker, docker, stimulusjs, bulma. 11 months ago
vendor upgrade ruby, rails, gems, packages 2 months ago
.browserslistrc initial project setup with rails, devise, activeadmin, webpacker, docker, stimulusjs, bulma. 11 months ago
.env.docker upgrade ruby, rails, gems, packages 2 months ago
.gitignore upgrade ruby, rails, gems, packages 2 months ago
.rspec add rspec to template. 11 months ago
.rubocop.yml add rspec to template. 11 months ago
.ruby-version upgrade ruby, rails, gems, packages 2 months ago
Dockerfile upgrade ruby, rails, gems, packages 2 months ago
Gemfile upgrade ruby, rails, gems, packages 2 months ago
Gemfile.lock upgrade ruby, rails, gems, packages 2 months ago
Procfile update views, mailers, styles, etc. 10 months ago
README.md upgrade docker images. 2 months ago
Rakefile initial project setup with rails, devise, activeadmin, webpacker, docker, stimulusjs, bulma. 11 months ago
babel.config.js upgrade ruby, rails, gems, packages 2 months ago
config.ru initial project setup with rails, devise, activeadmin, webpacker, docker, stimulusjs, bulma. 11 months ago
docker-compose.yml upgrade docker images. 2 months ago
package.json upgrade ruby, rails, gems, packages 2 months ago
postcss.config.js initial project setup with rails, devise, activeadmin, webpacker, docker, stimulusjs, bulma. 11 months ago
yarn.lock upgrade ruby, rails, gems, packages 2 months ago

README.md

Rails 6 template

This repo is a designed to be a Dockerized Rails 6 template:

Setup

  • bundle
  • Download latest copy of FontAwesome and replace vendor/fontawesome-pro/** (npm auth access has expired)
  • yarn install --check-files
  • Find/replace all TODO
  • docker-compose up --build

Dependencies

This service has dependencies on the following services.

  1. Ruby 2.6.5
  2. Rails 6.x
  3. Postgres
  4. Redis
  5. Webpacker
  6. Yarn
  7. Stimulus

Docker

Follow the Docker Getting Started guide to get docker, docker-machine and docker-compose. This project contains helper scripts to build, test, & push images to dockerhub.

1. Build image: $ script/build

  1. Run the test suite: $ script/test

Docker Compose

Docker compose is used for Jenkins and local development. Use the information below to configure each environment.

Local development

To start the application using docker compose locally:

  1. Start the services: $ docker-compose up --build
  2. Access via browser: $ open http://localhost:3000

Environment Variables

Variable Description Default
APP_NAME App name app
APP_TITLE App title TODO
DATABASE_URL Database URL postgres://localhost:5432/app_development
DB_CONNECT_TIMEOUT Db connect timeout 10
DB_MAX_CONNECTIONS Db Max Connections 16
DB_MIN_CONNECTIONS Db Minimum Connections 5
DB_SOCKET_TIMEOUT Db socket timeout 5
DB_WAIT_QUEUE_TIMEOUT Db Wait queue timeout 5
LOG_LEVEL Log level warn
REDIS_URL Redis Url redis://localhost:6379/0
SMTP_HOST Smpt address localhost
SMTP_PORT Smpt port 1025
WEBPACKER_HOST Webpacker host localhost
WEBPACKER_DEV_SERVER_HOST Webpacker dev host 0.0.0.0

TODO