Add an env var for PORT on render
This commit is contained in:
@@ -78,11 +78,21 @@ docker compose up --build
|
||||
DOCKER_BUILDKIT=1 docker build --tag rails-on-docker --file production.Dockerfile . --load
|
||||
```
|
||||
|
||||
Test the image can be used and Rails starts up, use a fake key for testing purposes only:
|
||||
```
|
||||
docker run --rm --env SECRET_KEY_BASE=dummy rails-on-docker
|
||||
```
|
||||
|
||||
### With legacy builder (no BuildKit)
|
||||
```
|
||||
docker build --tag rails-on-docker --file production.Dockerfile .
|
||||
```
|
||||
|
||||
Test the image can be used and Rails starts up, use a fake key for testing purposes only:
|
||||
```
|
||||
docker run --rm --env SECRET_KEY_BASE=dummy rails-on-docker
|
||||
```
|
||||
|
||||
## Deployment
|
||||
|
||||
This app can be hosted wherever Ruby is supported and PostgreSQL databases can be provisioned.
|
||||
|
||||
Reference in New Issue
Block a user