Skip to content

Commit

Permalink
Fix production environment
Browse files Browse the repository at this point in the history
  • Loading branch information
bressani committed Apr 15, 2019
1 parent 3d1e49c commit 0f46f14
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@
/yarn-error.log
yarn-debug.log*
.yarn-integrity

# Ignore secrets
/manifests/quacker-env-secrets.yml
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ RUN bundle exec rails webpacker:install
EXPOSE 3000

# # Start the main process.
CMD ["rails", "server", "-b", "0.0.0.0"]
ENTRYPOINT ["rails", "server", "-e", "$RAILS_ENV", "-b", "0.0.0.0"]
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ services:
build: .
ports:
- "3000:3000"
environment:
- RAILS_ENV=development
3 changes: 3 additions & 0 deletions manifests/quacker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ spec:
image: gcr.io/omega-metric-236502/quacker:1.0.0
ports:
- containerPort: 3000
envFrom:
- configMapRef:
name: env-secrets

0 comments on commit 0f46f14

Please sign in to comment.