Skip to content

Commit

Permalink
heroku config and typos
Browse files Browse the repository at this point in the history
  • Loading branch information
valasek committed Feb 17, 2019
1 parent 88a7cab commit 3425348
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DATABASE_URL=postgres://timesheet:timesheet@localhost:5432/timesheet
PORT=3000
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web: timesheet server
web: ./docker-entrypoint.sh
1 change: 1 addition & 0 deletions server/routes/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ func NewRoutes(api *api.API) *mux.Router {
a.HandleFunc("/reported/{id}", api.ReportedRecordUpdate).Methods("PUT")

// handle 404 and due to Vue history mode return home page
// FIXME serve only /dist/index.html
mux.NotFoundHandler = http.HandlerFunc(func (w http.ResponseWriter, req *http.Request) {
mux.Handle("/", http.FileServer(http.Dir("./client/dist/"))).Methods("GET")
})
Expand Down
2 changes: 1 addition & 1 deletion server/timesheet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ postgresql:
sslMode: "disable"

# Production URL - will be read from heroku config variables
# If set, abeve mentioned postgresql: settings are ignored
# If set, above mentioned postgresql: settings are ignored
DATABASE_URL: ""

# initial DB data files which are loaded via command "timesheet db --load all"
Expand Down

0 comments on commit 3425348

Please sign in to comment.