Skip to content

A little demo how to use un-namespaced parts in Rails

Notifications You must be signed in to change notification settings

motine/parts_demo

Repository files navigation

Rails in Parts

Please read the article.

Docker

We use Docker for running a reproducible development environment across the team's laptops. This means, that all dependencies for the project are installed in a container. We decided move away from Vagrant because of performance and file-syncing issues (and others). Please make sure you have Docker installed.

Workflow

Here a compact overview of things you can do:

# Build the image for the first time:
docker build -t parts/app .

# run the server (for demonstration purposes it will run migrations and seeding):
docker run -p 3000:3000 -v $(pwd):/app parts/app
# run the tests and the linter:
docker run -p 3000:3000 -v $(pwd):/app parts/app rspec
docker run -p 3000:3000 -v $(pwd):/app parts/app rake check:parts

# get a full shell
docker run -p 3000:3000 -v (pwd):/app -ti parts/app -- /bin/bash

About

A little demo how to use un-namespaced parts in Rails

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages