Skip to content

Instantly share code, notes, and snippets.

@atmos
Created July 19, 2010 17:15
Show Gist options
  • Select an option

  • Save atmos/481680 to your computer and use it in GitHub Desktop.

Select an option

Save atmos/481680 to your computer and use it in GitHub Desktop.
➜ ~ cd p/
➜ p hub clone heroku-express
Cloning into heroku-express...
remote: Counting objects: 31, done.
remote: Compressing objects: 100% (28/28), done.
remote: Total 31 (delta 8), reused 0 (delta 0)
Receiving objects: 100% (31/31), 28.03 KiB, done.
Resolving deltas: 100% (8/8), done.
➜ p node --version
0.1.100
➜ p cd heroku-express
➜ heroku-express git:(master) ls
README.md Rakefile lib public server.js
➜ heroku-express git:(master) rake -T
(in /Users/atmos/p/heroku-express)
rake setup # Package express to vendor/ for deployment
➜ heroku-express git:(master) nerd
➜ heroku-express git:(master) g s
# On branch master
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: Rakefile
#
no changes added to commit (use "git add" and/or "git commit -a")
➜ heroku-express git:(master) ✗ rake setup
(in /Users/atmos/p/heroku-express)
Cloning into express...
remote: Counting objects: 9838, done.
remote: Compressing objects: 100% (4281/4281), done.
remote: Total 9838 (delta 6015), reused 8627 (delta 5228)
Receiving objects: 100% (9838/9838), 1.42 MiB | 1.04 MiB/s, done.
Resolving deltas: 100% (6015/6015), done.
Note: checking out '0.14.1'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b new_branch_name
HEAD is now at 53589b4... Release 0.14.1
Submodule 'lib/support/class' (git://github.com/visionmedia/class.js.git) registered for path 'lib/support/class'
Submodule 'lib/support/ext' (git://github.com/visionmedia/ext.js.git) registered for path 'lib/support/ext'
Submodule 'lib/support/haml' (git://github.com/visionmedia/haml.js.git) registered for path 'lib/support/haml'
Submodule 'lib/support/multipart' (git://github.com/isaacs/multipart-js.git) registered for path 'lib/support/multipart'
Submodule 'lib/support/sass' (git://github.com/visionmedia/sass.js.git) registered for path 'lib/support/sass'
Cloning into lib/support/class...
remote: Counting objects: 219, done.
remote: Compressing objects: 100% (199/199), done.
remote: Total 219 (delta 102), reused 0 (delta 0)
Receiving objects: 100% (219/219), 48.73 KiB, done.
Resolving deltas: 100% (102/102), done.
Submodule path 'lib/support/class': checked out '6fa0d584c18bfab7aa707db226245f9eff85d1b6'
Cloning into lib/support/ext...
remote: Counting objects: 3963, done.
remote: Compressing objects: 100% (2179/2179), done.
remote: Total 3963 (delta 2525), reused 2740 (delta 1739)
Receiving objects: 100% (3963/3963), 410.73 KiB | 686 KiB/s, done.
Resolving deltas: 100% (2525/2525), done.
Submodule path 'lib/support/ext': checked out '282c20ccb6a6f1ade55a98ce24bf8b68a508b0f6'
Cloning into lib/support/haml...
remote: Counting objects: 1096, done.
remote: Compressing objects: 100% (684/684), done.
remote: Total 1096 (delta 488), reused 590 (delta 232)
Receiving objects: 100% (1096/1096), 123.46 KiB, done.
Resolving deltas: 100% (488/488), done.
Submodule path 'lib/support/haml': checked out '0d4880294b6a2bd9b998ce2fbb521fc9a41290a4'
Cloning into lib/support/multipart...
remote: Counting objects: 126, done.
remote: Compressing objects: 100% (125/125), done.
remote: Total 126 (delta 56), reused 0 (delta 0)
Receiving objects: 100% (126/126), 63.82 KiB, done.
Resolving deltas: 100% (56/56), done.
Submodule path 'lib/support/multipart': checked out '0b77a68582a9a533c4c57bd01210553f6d881868'
Cloning into lib/support/sass...
remote: Counting objects: 697, done.
remote: Compressing objects: 100% (581/581), done.
remote: Total 697 (delta 307), reused 102 (delta 10)
Receiving objects: 100% (697/697), 1.02 MiB | 448 KiB/s, done.
Resolving deltas: 100% (307/307), done.
Submodule path 'lib/support/sass': checked out 'fac9a896b361e32c02000bc7f7b92d4887332518'
➜ heroku-express git:(master) ✗ node server.js
Express started at http://*:8000/ in development mode
127.0.0.1 - - [19/Jul/2010 10:08:58] "GET / HTTP/1.1" 200 0 0.0070
127.0.0.1 - - [19/Jul/2010 10:08:58] "GET /public/css/style.css HTTP/1.1" 200 712 0.0030
127.0.0.1 - - [19/Jul/2010 10:08:58] "GET /public/js/app.js HTTP/1.1" 200 36 0.0100
127.0.0.1 - - [19/Jul/2010 10:08:58] "GET /public/js/jquery.1.4.2.min.js HTTP/1.1" 200 72174 0.0110
127.0.0.1 - - [19/Jul/2010 10:08:59] "GET /favicon.ico HTTP/1.1" 404 0 0.0010
^C
➜ heroku-express git:(master) ✗ g s
# On branch master
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: Rakefile
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# vendor/
no changes added to commit (use "git add" and/or "git commit -a")
➜ heroku-express git:(master) ✗ git add vendor/ Rakefile
➜ heroku-express git:(master) ✗ git commit -m "an example application for node on heroku (again)"
[master e90bba4] an example application for node on heroku (again)
63 files changed, 7572 insertions(+), 1 deletions(-)
create mode 100644 vendor/express/.gitignore
create mode 100644 vendor/express/lib/express.js
create mode 100644 vendor/express/lib/express/core.js
create mode 100644 vendor/express/lib/express/dsl.js
create mode 100644 vendor/express/lib/express/event.js
create mode 100644 vendor/express/lib/express/http.js
create mode 100644 vendor/express/lib/express/mime.js
create mode 100644 vendor/express/lib/express/pages/not-found.js
create mode 100644 vendor/express/lib/express/pages/show-exceptions.js
create mode 100644 vendor/express/lib/express/pages/style.js
create mode 100644 vendor/express/lib/express/plugin.js
create mode 100644 vendor/express/lib/express/plugins.js
create mode 100644 vendor/express/lib/express/plugins/body-decoder.js
create mode 100644 vendor/express/lib/express/plugins/cache.js
create mode 100644 vendor/express/lib/express/plugins/content-length.js
create mode 100644 vendor/express/lib/express/plugins/cookie.js
create mode 100644 vendor/express/lib/express/plugins/flash.js
create mode 100644 vendor/express/lib/express/plugins/hooks.js
create mode 100644 vendor/express/lib/express/plugins/logger.js
create mode 100644 vendor/express/lib/express/plugins/method-override.js
create mode 100644 vendor/express/lib/express/plugins/redirect.js
create mode 100644 vendor/express/lib/express/plugins/session.js
create mode 100644 vendor/express/lib/express/plugins/static.js
create mode 100644 vendor/express/lib/express/plugins/view.js
create mode 100644 vendor/express/lib/express/request.js
create mode 100644 vendor/express/lib/express/spec.js
create mode 100644 vendor/express/lib/express/spec/mocks.js
create mode 100644 vendor/express/lib/express/utils.js
create mode 120000 vendor/express/lib/index.js
create mode 100644 vendor/express/lib/support/class/lib/class.js
create mode 100644 vendor/express/lib/support/ejs/lib/ejs.js
create mode 100644 vendor/express/lib/support/ext/lib/ext.js
create mode 100644 vendor/express/lib/support/ext/lib/ext/base64.js
create mode 100644 vendor/express/lib/support/ext/lib/ext/core_ext.js
create mode 100644 vendor/express/lib/support/ext/lib/ext/core_ext/array.js
create mode 100644 vendor/express/lib/support/ext/lib/ext/core_ext/array/collections.js
create mode 100644 vendor/express/lib/support/ext/lib/ext/core_ext/array/enumerable.js
create mode 100644 vendor/express/lib/support/ext/lib/ext/core_ext/array/extensions.js
create mode 100644 vendor/express/lib/support/ext/lib/ext/core_ext/date.js
create mode 100644 vendor/express/lib/support/ext/lib/ext/core_ext/date/extensions.js
create mode 100644 vendor/express/lib/support/ext/lib/ext/core_ext/date/parser.js
create mode 100644 vendor/express/lib/support/ext/lib/ext/core_ext/error.js
create mode 100644 vendor/express/lib/support/ext/lib/ext/core_ext/function.js
create mode 100644 vendor/express/lib/support/ext/lib/ext/core_ext/number.js
create mode 100644 vendor/express/lib/support/ext/lib/ext/core_ext/object.js
create mode 100644 vendor/express/lib/support/ext/lib/ext/core_ext/object/extensions.js
create mode 100644 vendor/express/lib/support/ext/lib/ext/core_ext/regexp.js
create mode 100644 vendor/express/lib/support/ext/lib/ext/core_ext/string.js
create mode 100644 vendor/express/lib/support/ext/lib/ext/core_ext/string/extensions.js
create mode 100644 vendor/express/lib/support/ext/lib/ext/core_ext/string/inflections.js
create mode 100644 vendor/express/lib/support/ext/lib/ext/md5.js
create mode 100644 vendor/express/lib/support/ext/lib/ext/printf.js
create mode 100644 vendor/express/lib/support/haml/.gitmodules
create mode 100644 vendor/express/lib/support/haml/.ignore
create mode 100644 vendor/express/lib/support/haml/lib/haml.js
create mode 100644 vendor/express/lib/support/multipart/lib/multipart.js
create mode 100644 vendor/express/lib/support/multipart/lib/old.js
create mode 100644 vendor/express/lib/support/multipart/lib/parse.js
create mode 100644 vendor/express/lib/support/multipart/lib/utils.js
create mode 100644 vendor/express/lib/support/multipart/lib/write.js
create mode 100644 vendor/express/lib/support/sass/.gitignore
create mode 100644 vendor/express/lib/support/sass/lib/sass.js
➜ heroku-express git:(master) heroku create --stack beech scott-test
Enter your Heroku credentials.
Email: atmos@atmos.org
Password:
Uploading ssh public key /Users/atmos/.ssh/id_dsa.pub
Creating scott-test.... done
Created http://scott-test.heroku.com/ | git@heroku.com:scott-test.git
Git remote heroku added
➜ heroku-express git:(master) git push heroku master
Counting objects: 113, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (91/91), done.
Writing objects: 100% (113/113), 90.29 KiB, done.
Total 113 (delta 7), reused 17 (delta 4)
-----> Heroku receiving push
-----> Node app detected
Compiled slug size is 76K
-----> Launching...... done
http://scott-test.heroku.com deployed to Heroku
To git@heroku.com:scott-test.git
* [new branch] master -> master
➜ heroku-express git:(master) curl http://scott-test.heroku.com
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Example Express App on Heroku</title>
<link rel="stylesheet" href="/public/css/style.css"/>
<script src="/public/js/jquery.1.4.2.min.js"></script>
<script src="/public/js/app.js"></script>
</head>
<body>
<div id="header">
<h1>
<a href="/">Who Am I?</a>
</h1>
</div>
<div id="main">
<div id="mid">
<div id="content">
<h2>Sup, you're from 10.218.55.196</h2>
</div>
</div>
</div>
</body>
</html>
➜ heroku-express git:(master)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment