Ruby version: 2.7.1
Sinatra version: 2.0.8.1
-
Set the Contentful credentials at the
docker-compose.yml
:- 1.1
CONTENTFUL_ACCESS_TOKEN
- 1.2
CONTENTFUL_SPACE
- 1.1
-
After declaring the credentials, just run:
-
or
docker-compose up --build // to build and run
-
docker-compose up // to run
-
-
The app will be available at:
localhost:3000
-
To open the console (like rails console), just run:
docker-compose exec kgs rake console
or
docker-compose exec kgs rake c
-
Install the dependencies, run:
cd recipes bundle
-
Make a copy of the
.env.example
filecp .env.example .env
-
Set the Contentful credentials at the
.env
- 1.1
CONTENTFUL_ACCESS_TOKEN
- 1.2
CONTENTFUL_SPACE
- 1.1
-
Run:
bundle exec rackup
-
The app will be available at:
localhost:3000
-
To open the console (like rails console), just run:
rake console
or
rake c