Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
removed Heroku deployment recipe again
  • Loading branch information
kraih committed Jun 7, 2012
1 parent 69c222d commit 7c88cb6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 40 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

2.99 2012-06-07
2.99 2012-06-08
- Improved message parser performance slightly.
- Improved documentation. (ichesnokov, sri)
- Improved tests.
Expand Down
39 changes: 0 additions & 39 deletions lib/Mojolicious/Guides/Cookbook.pod
Expand Up @@ -208,45 +208,6 @@ But you could even use middleware right in your application.
app->start;
};

=head2 Heroku

But you don't have to run your own web server, L<Mojolicious> applications can
also be deployed to many cloud hosting providers, such as Heroku. All you have
to do is install the L<Heroku Toolbelt|https://toolbelt.herokuapp.com/> and
sign up for a free account at L<https://api.heroku.com/signup>. The C<heroku>
command line client will do the rest.

$ heroku login

Lets start with a simple L<Mojolicious::Lite> application.

$ mkdir myapp
$ cd myapp
$ mojo generate lite_app

A normal C<Makefile.PL> file is used to list all CPAN dependencies of your
application, which allows Heroku to install them automatically.

$ mojo generate makefile

Now create a C<Perloku> file to tell Heroku how to start the Mojolicious web
server, the port to be used will be passed to it via environment variable.

#!/bin/sh
./myapp.pl daemon -l http://*:$PORT -m production

And make sure the file is executable.

$ chmod +x Perloku

Finally just deploy your application with C<git>.

$ git init
$ git add .
$ git commit -m 'Initial version'
$ heroku create -s cedar --buildpack http://github.com/judofyr/perloku.git
$ git push heroku master

=head2 Rewriting

Sometimes you might have to deploy your application in a blackbox environment
Expand Down

0 comments on commit 7c88cb6

Please sign in to comment.