Skip to content

Commit

Permalink
reorganize commands to keep things more consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre Medeiros committed Jul 13, 2021
1 parent 143ccfc commit 9fa0257
Show file tree
Hide file tree
Showing 20 changed files with 960 additions and 584 deletions.
6 changes: 3 additions & 3 deletions Procfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
web: apollo-api
scheduler: apollo-scheduler
worker-notifications: apollo-worker-notifications
web: apollo api
scheduler: apollo scheduler
worker-notifications: apollo worker --queue notifications --multiplier 12
90 changes: 0 additions & 90 deletions cmd/apollo-api/accounts.go

This file was deleted.

8 changes: 0 additions & 8 deletions cmd/apollo-api/errors.go

This file was deleted.

117 changes: 0 additions & 117 deletions cmd/apollo-api/main.go

This file was deleted.

16 changes: 0 additions & 16 deletions cmd/apollo-api/routes.go

This file was deleted.

17 changes: 17 additions & 0 deletions cmd/apollo/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package main

import (
"context"
"os"
"os/signal"

"github.com/christianselig/apollo-backend/internal/cmd"
)

func main() {
ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt, os.Kill)
defer cancel()

ret := cmd.Execute(ctx)
os.Exit(ret)
}
3 changes: 1 addition & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@ require (
github.com/adjust/rmq/v4 v4.0.1
github.com/go-co-op/gocron v1.6.2
github.com/go-redis/redis/v8 v8.11.0
github.com/heroku/x v0.0.31
github.com/jackc/pgx/v4 v4.11.0
github.com/joho/godotenv v1.3.0
github.com/julienschmidt/httprouter v1.3.0
github.com/lib/pq v1.10.1
github.com/sideshow/apns2 v0.20.0
github.com/sirupsen/logrus v1.8.1
github.com/spf13/cobra v1.2.1
github.com/valyala/fastjson v1.6.3
)
Loading

0 comments on commit 9fa0257

Please sign in to comment.