-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathconfig.html
74 lines (70 loc) · 2.06 KB
/
config.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<h3>Heroku</h3>
<div ng-show="userIsCreator">
<div ng-hide="userConfig.accounts.length">
<p>
To get started setup Strider as an Api Client on Heroku. You can do this
via the
<a
href="https://dashboard.heroku.com/account/applications"
target="_blank"
rel="noopenner noreferrer"
>
Applications
</a>
page under Account Settings.
</p>
<p>
Once you have the 'Client ID' and 'Client Secret' make sure to set them as
environment variables for Strider (you'll have to restart Strider for
this). Environment variables should be
<code>PLUGIN_HEROKU_CLIENT_ID</code> and
<code>PLUGIN_HEROKU_CLIENT_SECRET</code>.
</p>
<p>
Next you'll need to install the
<a
href="https://devcenter.heroku.com/articles/heroku-cli"
target="_blank"
rel="noopenner noreferrer"
>
Heroku CLI
</a>
and run <code>heroku login</code>. Now you are ready to "Add Heroku"
below.
</p>
<a
href="/ext/heroku/oauth?redirect=/[[ project.name ]]/config"
class="btn btn-success"
>Add a Heroku Account</a
>
</div>
<div ng-show="userConfig.accounts.length">
<div class="accounts">
<h4>Linked Accounts</h4>
<select
ng-model="account"
ng-options="account.email for account in userConfig.accounts track by account.id"
></select>
<a
href="/ext/heroku/oauth?redirect=/[[ project.name ]]/config"
class="btn btn-success"
>Add a Heroku Account</a
>
</div>
<div class="apps">
<h4>Apps</h4>
Deploy to:
<select
ng-model="config.app"
ng-options="app.name for app in account.cache track by app.id"
></select>
<button ng-click="getApps()" class="btn">
<i class="icon-refresh"></i> Refresh Apps List
</button>
</div>
<button ng-click="save()" class="btn btn-primary">Save</button>
</div>
</div>
<p ng-hide="userIsCreator">
Only the creator can setup this project for heroku deployment.
</p>