Skip to content

Commit

Permalink
Merge branch 'master' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
bfreeds authored Oct 23, 2023
2 parents 3649634 + 90662c3 commit 46a2a9d
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
9 changes: 9 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,15 @@ GEM
rspec-core (3.12.2)
rspec-support (~> 3.12.0)
rspec-expectations (3.12.3)
rdoc (6.3.2)
rexml (3.2.5)
rspec (3.10.0)
rspec-core (~> 3.10.0)
rspec-expectations (~> 3.10.0)
rspec-mocks (~> 3.10.0)
rspec-core (3.10.1)
rspec-support (~> 3.10.0)
rspec-expectations (3.10.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-github (2.4.0)
Expand Down
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
GCLOUD_PROJECT:=$(shell gcloud config list project --format="value(core.project)")
PROJECT_NAME:=klaxon

build:
docker build -t us.gcr.io/$(GCLOUD_PROJECT)/$(PROJECT_NAME) .

push: build
docker push us.gcr.io/$(GCLOUD_PROJECT)/$(PROJECT_NAME)
6 changes: 5 additions & 1 deletion config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ test:

production:
<<: *default
url: <%= ENV['DATABASE_URL'] %>
database: <%= ENV.fetch('DB_NAME') %>
username: <%= ENV.fetch('DB_USER') %>
password: <%= ENV.fetch('DB_PASSWORD') %>
host: <%= ENV.fetch('DB_HOST', 'localhost') %>
port: 5432
7 changes: 7 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

# Precompile files
bundle exec rake assets:precompile

# Run the server
bundle exec puma -C config/puma.rb

0 comments on commit 46a2a9d

Please sign in to comment.