Skip to content

Link to Public WIP #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/node_modules
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@
This is a work-in-progress test harness for the Activity Streams 2.0
specification.

Additional detail to be added.
You can try it out the WIP at [https://activitystreams-testing.herokuapp.com/](https://activitystreams-testing.herokuapp.com/).

Additional detail to be added.
4 changes: 3 additions & 1 deletion README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@
This is a work-in-progress test harness for the Activity Streams 2.0
specification.

Additional detail to be added.
You can try it out the WIP at [https://activitystreams-testing.herokuapp.com/](https://activitystreams-testing.herokuapp.com/).

Additional detail to be added.
11 changes: 8 additions & 3 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,13 @@ app.use(methodOverride()); // simulate DELETE and PUT

app.engine('html', require('ejs').renderFile);
app.set('views', __dirname + '/views');
app.set('host', process.env.VCAP_APP_HOST || 'localhost'); // The IP address of the Cloud Foundry DEA (Droplet Execution Agent) that hosts this application
app.set('port', process.env.VCAP_APP_PORT || '3000'); // The port on the DEA for communication with the application

if (process.env.VCAP_APP_HOST) {
// The IP address of the Cloud Foundry DEA (Droplet Execution Agent) that hosts
// this application
app.set('host', process.env.VCAP_APP_HOST);
}
app.set('port', process.env.VCAP_APP_PORT || process.env.PORT || '3000'); // The port on the DEA for communication with the application

var appInfo = JSON.parse(process.env.VCAP_APPLICATION || "{}"); // VCAP_APPLICATION contains useful information about a deployed application.
// TODO: Get application information and use it in your app.
Expand All @@ -48,4 +53,4 @@ console.log('App started on ' + app.get('host') + ':' + app.get('port'));
process.on( 'SIGINT', function() {
console.log( "\nGracefully shutting down from SIGINT (Ctrl-C)" );
process.exit( );
})
})