Rails

Services

Frontend gems

Database seeding

  • seed-fu - Advanced seed data handling for Rails, combining the best practices of several methods together.

Concerns

DI (Dependency Injection)

Dockerfile

Basic Dockerfile

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM ruby:2.2.0
MAINTAINER genar@acs.li

# Install dependencies
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs
RUN mkdir /myapp
WORKDIR /myapp
ADD . /myapp
RUN bundle install
RUN bin/rake db:migrate

# Publish port 3000
EXPOSE 3000

# Start rails built-in server
ENTRYPOINT rails s -p 3000 -b 0.0.0.0

Testing

Controllers

I18n

Books

Comments

⬆︎TOP