Created
July 17, 2012 19:15
-
-
Save miyagawa/3131370 to your computer and use it in GitHub Desktop.
Heroku deployment with cpanfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ➜ heroku-hello git:(master) cat app.psgi | |
| require 'app.pl'; | |
| ➜ heroku-hello git:(master) cat app.pl | |
| use Mojolicious::Lite; | |
| get '/' => sub { | |
| my $self = shift; | |
| $self->render(text => "Hello Heroku"); | |
| }; | |
| app->start; | |
| ➜ heroku-hello git:(master) cat cpanfile | |
| requires 'Mojolicious', 3; | |
| ➜ heroku-hello git:(master) heroku create --buildpack http://github.com/miyagawa/heroku-buildpack-perl.git | |
| Creating deep-waterfall-4808... done, stack is cedar | |
| BUILDPACK_URL=http://github.com/miyagawa/heroku-buildpack-perl.git | |
| http://deep-waterfall-4808.herokuapp.com/ | [email protected]:deep-waterfall-4808.git | |
| Git remote heroku added | |
| ➜ heroku-hello git:(master) git push heroku master | |
| Counting objects: 4, done. | |
| Delta compression using up to 4 threads. | |
| Compressing objects: 100% (2/2), done. | |
| Writing objects: 100% (3/3), 341 bytes, done. | |
| Total 3 (delta 0), reused 0 (delta 0) | |
| -----> Heroku receiving push | |
| -----> Fetching custom buildpack... done | |
| -----> Perl/PSGI app detected | |
| -----> Installing dependencies | |
| Successfully installed Mojolicious-3.10 | |
| 1 distribution installed | |
| -----> Installing Starman | |
| Starman is up to date. (0.3001) | |
| -----> Discovering process types | |
| Procfile declares types -> (none) | |
| Default types for Perl/PSGI -> web | |
| -----> Compiled slug size is 2.8MB | |
| -----> Launching... done, v5 | |
| http://deep-waterfall-4808.herokuapp.com deployed to Heroku | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks great!