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
Where `token` is the 40 character alphanumeric string of your GitHub API personal access token. It is in the form of "ghp_2D5TYFikFsQ4U9KPfzHyvigMycePCPqkPgWc".
133
135
136
+
#### Heroku example
137
+
134
138
The image built this way can be pushed to cloud hosting providers such as [Heroku](https://www.heroku.com/). With Heroku as an example:
135
139
136
140
1. Set up an empty app from your Heroku dashboard.
This demo instance will go into a sleep state after a period of inactivity. If your API calls to this endpoint is taking more than a few seconds, it might be the demo waking from that state.
165
169
170
+
#### Fly.io example
171
+
172
+
Similar to Heroku, the container image created above can be deployed to an app on [Fly.io](https://fly.io/). Assuming an account has already been created:
173
+
174
+
1. Log in to Fly.io in a terminal session:
175
+
176
+
```
177
+
flyctl auth login
178
+
```
179
+
180
+
2. Launch a new app. Run the following command, which will ask for an app name. Enter `[your app name]`, replacing it with whatever name you'd like:
181
+
182
+
```
183
+
flyctl launch
184
+
```
185
+
186
+
3. Authorise pushing a container image to the Fly.io image registry:
187
+
188
+
```
189
+
flyctl auth docker
190
+
```
191
+
192
+
4. Push the locally built image to the remote Fly.io image registry:
6. Set GitHub API personal access token as environmental variable:
205
+
206
+
```
207
+
flyctl secrets set GITHUB_TOKEN=[token]
208
+
```
209
+
210
+
Where `token` is the 40 character alphanumeric string of your GitHub API personal access token. It is in the form of "ghp_2D5TYFikFsQ4U9KPfzHyvigMycePCPqkPgWc".
211
+
166
212
## Usage
167
213
168
214
The backend server listens to requests for information about a list of open source hardware (and software) repositories hosted on Wikifactory or GitHub. The GitHub backend is a placeholder for now, but the Wikifactory backend is now accessible.
0 commit comments