Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
todomvc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sven Franck
todomvc
Commits
5bc3076c
Commit
5bc3076c
authored
Apr 12, 2013
by
Pascal Hartig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
derby: Added heroku deployment
parent
feb84b19
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
4 deletions
+22
-4
labs/architecture-examples/derby/Makefile
labs/architecture-examples/derby/Makefile
+12
-3
labs/architecture-examples/derby/Procfile
labs/architecture-examples/derby/Procfile
+1
-0
labs/architecture-examples/derby/README.md
labs/architecture-examples/derby/README.md
+6
-0
labs/architecture-examples/derby/server.js
labs/architecture-examples/derby/server.js
+3
-1
No files found.
labs/architecture-examples/derby/Makefile
View file @
5bc3076c
compile
:
compile
:
./node_modules/coffee-script/bin/coffee
-bw
-o
./lib
-c
./src
run
:
npm
install
npm
install
./node_modules/coffee-script/bin/coffee
-b
-o
./lib
-c
./src
./node_modules/coffee-script/bin/coffee
-b
-o
./lib
-c
./src
run
:
compile
node server.js
node server.js
deploy-setup
:
compile
git init
heroku git:remote
-a
todomvc-derby
sed
-i
's/lib//'
.gitignore
git add
-A
git commit
-m
"Deployment update"
deploy
:
git push heroku master
labs/architecture-examples/derby/Procfile
0 → 100644
View file @
5bc3076c
web: node server.js
labs/architecture-examples/derby/README.md
View file @
5bc3076c
...
@@ -23,3 +23,9 @@ the demo server for you.
...
@@ -23,3 +23,9 @@ the demo server for you.
In one window, run
`make`
which will continue to compile the CoffeScript as
In one window, run
`make`
which will continue to compile the CoffeScript as
you save changes. In a separate window run
`node server.js`
and open up the
you save changes. In a separate window run
`node server.js`
and open up the
shown URL.
shown URL.
### Deploy on Heroku
Run
`make deploy-setup`
once to setup a git repository in this subdirectory and
setup Heroku. Running
`make heroku`
will put it on Heroku.
labs/architecture-examples/derby/server.js
View file @
5bc3076c
require
(
'
derby
'
).
run
(
__dirname
+
'
/lib/server
'
,
3003
);
var
port
=
process
.
env
.
PORT
||
3003
;
require
(
'
derby
'
).
run
(
__dirname
+
'
/lib/server
'
,
port
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment