forked from dsorkin/ruby_on_rails
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
22 lines (14 loc) · 686 Bytes
/
Makefile
File metadata and controls
22 lines (14 loc) · 686 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Must have `sentry-cli` installed globally
# Following env variables have to be set or passed in:
# SENTRY_AUTH_TOKEN=<value> or have it set as environment variable
SENTRY_ORG=testorg-az
SENTRY_PROJECT=rails-demo
VERSION=`sentry-cli releases propose-version`
deploy: create_release associate_commits run_rails
create_release:
sentry-cli releases -o $(SENTRY_ORG) new -p $(SENTRY_PROJECT) $(VERSION)
# makes Sentry look at commits sitting on Sentry, and associates them to this Release that's getting pushed up
associate_commits:
sentry-cli releases -o $(SENTRY_ORG) -p $(SENTRY_PROJECT) set-commits --auto $(VERSION)
run_rails:
VERSION=$(VERSION) bin/rails server -p 3001