ruby version: 2.4.2
gemset: planto
Install postgres dependencies:
For mac
brew install libpq
For linux
apt-get install postgresql-client
Start postgres container:
docker-compose up
Create migrations:
rake db:create db:migrate
Start your Rails server:
rails start
Start webpack dev server:
./bin/webpack-dev-server
rake assets:precompile
rails test:system
rails test
Links:
yarn add package-name
rails dev:cache
version: "3"
volumes:
db: {}
services:
app:
image: sibext/planto:latest
environment:
SECRET_KEY_BASE: xxxxxxxxx
POSTGRES_USER=postgres
POSTGRES_HOST=db
depends_on:
- db
ports:
- 3000:3000
db:
image: postgres:9.6.5
volumes:
- db:/var/lib/postgresql/data