Skip to content

Commit

Permalink
Added deployment instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
Bienvenido Benoit Ranque committed Apr 8, 2019
1 parent af6e1a8 commit cbcb0b0
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.env
.env.production
docker
docker
dist
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,26 @@ HASURA_GRAPHQL_ADMIN_SECRET=secret
# at least 32 characters
AUTH_JWT_SECRET=secret
```

## Building and transfering an image in production

### 1. Build & Save the production docker image

```sh
# build image for production
docker-compose -f docker-compose.yml build
# find image id
docker images
# save image
docker save <IMAGE_ID> --output dist/<image.tag>.tar
```

### 2. Load and tag Image in production environment

```sh
sudo docker load --input path/to/<image.tag>.tar
# find image id
sudo docker images
# tag image
sudo docker tag <IMAGE_ID> <image:tag>
```

0 comments on commit cbcb0b0

Please sign in to comment.