Skip to content
Open
Binary file removed Mojolicious-Command-deploy-heroku-0.12.tar.gz
Binary file not shown.
Binary file added Mojolicious-Command-deploy-heroku-0.24.tar.gz
Binary file not shown.
34 changes: 21 additions & 13 deletions README.pod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Mojolicious::Command::deploy::heroku - Deploy to Heroku

=head1 USAGE
=head1 SYNOPSIS

script/my_app deploy heroku [OPTIONS]

Expand All @@ -18,10 +18,9 @@ Mojolicious::Command::deploy::heroku - Deploy to Heroku
script/my_app deploy heroku --name happy-cloud-1234

These options are available:
-n, --appname <name> Specify app for deployment
-a, --api-key <api_key> Heroku API key (read from ~/.heroku/credentials by default).
-c, --create Create a new Heroku app
-v, --verbose Verbose output (heroku response, git output)
-n, --name <name> Specify app for deployment
-a, --api-key <api_key> Heroku API key (read from ~/.netrc by default)
-c, --create [name] Create a new Heroku app with an optional name
-h, --help This message

=head1 DESCRIPTION
Expand All @@ -30,42 +29,49 @@ L<Mojolicious::Command::deploy::heroku> deploys a Mojolicious app to Heroku.

*NOTE* The deploy command itself works on Windows, but the Heroku service does not reliably accept deployments from Windows. Your mileage may vary.

*NOTE* This release works with Mojolicious versions 4.50 and above. For older Mojolicious versions, please use 0.10 or before.
*NOTE* This release works with Mojolicious versions 7.20 and above. For older Mojolicious versions, please use 0.13 or before.

=head1 WORKFLOW

=over 4

=item 1) B<Heroku Service>

L<https://api.heroku.com/signup>
L<https://signup.heroku.com>

=item 2) B<Generate Mojolicious app>

mojo generate lite_app hello

=item 3) B<Deploy>

hello deploy heroku --create
./hello deploy heroku --create [optional-name]

The deploy command creates a git repository of the B<current directory's contents> in /tmp, and then pushes it to a remote heroku repository.

For applications with additional dependencies, you will need to generate a Makefile.PL and manually add your dependencies to the "PREREQ_PM" section before deploying:

./hello generate makefile

=back

=head1 SEE ALSO

L<https://github.com/tempire/mojolicious-command-deploy-heroku>,
L<https://github.com/tempire/perloku>,
L<http://heroku.com/>,
L<http://mojolicio.us>
L<https://github.com/tempire/mojolicious-command-deploy-heroku>

L<https://github.com/tempire/perloku>

L<http://heroku.com/>

L<https://mojolicious.org>

=head1 SOURCE

L<http://github.com/tempire/mojolicious-command-deploy-heroku>

=head1 VERSION

0.22
0.24

=head1 AUTHOR

Expand All @@ -77,4 +83,6 @@ MattOates

briandfoy

rage311

=cut
10 changes: 4 additions & 6 deletions dist.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,18 @@ name = Mojolicious-Command-deploy-heroku
auth = Glen Hinkle <[email protected]>
license = Perl_5
copyright_holder = Glen Hinkle
version = 0.12
version = 0.24

[@Filter]
bundle = @Basic
;remove = Readme

[Prereqs]
File::Path = 2.08
File::Slurp = 9999.19
IPC::Cmd = 0.78
Mojolicious = 4.82
Mojolicious = 8.0
Mojolicious::Command::deploy = 0.01
Net::Heroku = 0.08
;IO::All = 0.44
Net::Heroku = 0.20
Net::Netrc = 3.10

[MetaResources]
repository.web = https://github.com/tempire/mojolicious-command-deploy-heroku
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package Mojolicious::Command::generate::heroku;
package Mojolicious::Command::Author::generate::heroku;
use Mojo::Base 'Mojolicious::Command';
use Mojo::Util 'class_to_file';

Expand All @@ -15,36 +15,37 @@ sub run {
? $0
: 'script/' . class_to_file($class);

$self->render_to_rel_file(perloku => $self->file => $script_name);
$self->render_to_rel_file(
perloku => $self->file => { script_name => $script_name }
);
$self->chmod_file($self->file => 0744);
}

1;
__DATA__

@@ perloku
#!/bin/sh
./<%= +(shift =~ qr|[\./]*(.+)|)[0] %> daemon --listen http://*:$PORT --mode production
web: ./<%= +($script_name =~ qr|[\./]*(.+)|)[0] %> daemon --listen http://*:$PORT --mode production

__END__
=head1 NAME

Mojolicious::Command::generate::heroku - Heroku configuration generator command
Mojolicious::Command::Author::generate::heroku - Heroku configuration generator command

=head1 SYNOPSIS

use Mojolicious::Command::generate::heroku;
use Mojolicious::Command::Author::generate::heroku;

my $heroku = Mojolicious::Command::generate::heroku->new;
my $heroku = Mojolicious::Command::Author::generate::heroku->new;
$heroku->run(@ARGV);

=head1 DESCRIPTION

L<Mojolicious::Command::generate::heroku> is a heroku configuration generator.
L<Mojolicious::Command::Author::generate::heroku> is a heroku configuration generator.

=head1 ATTRIBUTES

L<Mojolicious::Command::generate::heroku> inherits all attributes from
L<Mojolicious::Command::Author::generate::heroku> inherits all attributes from
L<Mojo::Command> and implements the following new ones.

=head2 C<description>
Expand All @@ -63,7 +64,7 @@ Usage information for this command, used for the help screen.

=head1 METHODS

L<Mojolicious::Command::generate::heroku> inherits all methods from
L<Mojolicious::Command::Author::generate::heroku> inherits all methods from
L<Mojo::Command> and implements the following new ones.

=head2 C<run>
Expand Down
Loading