You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: heroku/README.md
+56-7Lines changed: 56 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@
7
7
- A Heroku account
8
8
- Heroku CLI installed
9
9
10
-
### Steps
10
+
### Deploying Coder
11
11
12
12
1. Create a new Heroku app by using our deploy button below. This will automatically create a new app and deploy the latest version of Coder to it along with a basic postgres database.
13
13
@@ -19,8 +19,6 @@
19
19
heroku labs:enable runtime-dyno-metadata -a <app-name>
20
20
```
21
21
22
-
Replace `<app-name>` with the name of your Heroku app.
23
-
24
22
> **Note:**`HEROKU_APP_NAME` is required by Coder to configure the `CODER_ACCESS_URL` environment variable. This is made available by enabling dyno metadata.
25
23
26
24
3. Clone the repository to your local machine and connect it to your Heroku app by running the following commands in the terminal:
@@ -30,7 +28,58 @@
30
28
heroku git:remote -a <app-name>
31
29
```
32
30
33
-
Replace `<app-name>` with the name of your Heroku app.
31
+
4. Push the repository to Heroku by running the following command in the terminal:
32
+
33
+
```bash
34
+
git push heroku main
35
+
```
36
+
37
+
5. Once the deployment is complete, you can access your Coder instance by going to `https://<app-name>.herokuapp.com`.
38
+
39
+
## Creating your first workspace
40
+
41
+
We have an example community template that you can use to create your first workspace deployed as an ephemeral heroku worker dyno. Follow the steps below to create your first workspace:
42
+
43
+
1. Install Coder locally by running the following command in the terminal:
44
+
45
+
Linux / macOS:
46
+
47
+
```bash
48
+
curl -fsSL https://coder.com/install.sh | sh
49
+
```
50
+
51
+
Windows:
52
+
53
+
```powershell
54
+
winget install Coder.Coder
55
+
```
56
+
57
+
2. Login to your Coder instance by running the following command in the terminal:
58
+
59
+
```bash
60
+
coder login https://<app-name>.herokuapp.com
61
+
```
62
+
63
+
3. Clone the repository and change into the directory:
> Replace `<heroku-api-key>` with your Heroku API key. You can create a new API key by going to your [account settings](https://dashboard.heroku.com/account).
34
83
35
84
## Updating Coder
36
85
@@ -41,10 +90,10 @@ git pull origin main
41
90
git push heroku main
42
91
```
43
92
44
-
Replace `<app-name>` with the name of your Heroku app.
45
-
46
93
## Next steps
47
94
48
-
- Check out our [documentation](https://coder.com/docs) to learn how to configure your Coder instance.
95
+
- Check out our [documentation](https://coder.com/docs/v2/latest/admin/configure) to learn how to configure your Coder instance.
49
96
50
97
- You can add environment variables to an Heroku app by going to the app's settings page and clicking on the "Reveal Config Vars" button.
98
+
99
+
> **Note:** Replace `<app-name>` with the name of your Heroku app.
0 commit comments