Skip to content

Commit 21e7fa9

Browse files
committed
Add resin compatibility.
1 parent 7932bd2 commit 21e7fa9

File tree

4 files changed

+23
-3
lines changed

4 files changed

+23
-3
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,10 @@ Utility for transfering the coder image to an SD Card
2222
#### findcoder-appengine
2323
EXPERIMENTAL: A status server that can be run to help locate multiple Coder devices in a classroom scenario
2424

25-
26-
25+
## Installing on resin.io
26+
1. Sign up at https://alpha.resin.io/signup and follow the instructions to install resin on your Rasberry Pi.
27+
2. Push this repository to your resin application.
28+
3. Add an environment variable called PORT and set it to the port you want to access Coder on.
29+
4. Go to https://$(RASPBERY_PI_IP):$(PORT)
30+
5. ???
31+
6. PROFIT

coder-base/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
exports.listenIP = null; //Defaults to *
3-
exports.listenPort = '8081'; //the SSL port things run on
3+
exports.listenPort = process.env.PORT; //the SSL port things run on
44
exports.httpListenPort = '8080'; //this will all be redirected to SSL
55
exports.cacheApps = true;
66
exports.httpVisiblePort = '80'; //forwarded http port the user sees

install.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
cd coder-base
3+
npm install
4+
cd ../coder-apps
5+
./install_common.sh ../coder-base

package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"name": "resin-coder",
3+
"description": "resin compatible google-coder",
4+
"version": "0.0.1",
5+
"private": true,
6+
"scripts": {
7+
"preinstall": "bash install.sh",
8+
"start": "cd coder-base && node server.js"
9+
}
10+
}

0 commit comments

Comments
 (0)