Skip to content

Commit a5fe833

Browse files
committed
Update instructions for running scaffolded apps
1 parent 05fcf1e commit a5fe833

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

lib/Dancer2/CLI/Gen.pm

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -268,10 +268,12 @@ sub _how_to_run {
268268

269269
my $app_path = $vars->{ apppath };
270270
my $app_name = $vars->{ appname };
271+
272+
print "\nYour new application is ready! To run it:\n";
273+
271274
if( $vars->{ docker } ) {
272275
my $image = lc $app_name;
273276
print qq{
274-
Your new application is ready! To run it:
275277
276278
cd $app_path
277279
docker build -t ${image} .
@@ -284,18 +286,20 @@ runs on inside of the container.
284286
285287
You may also run your app without Docker:
286288
};
287-
} else {
288-
print "\nYour new application is ready! To run it:\n";
289289
}
290+
291+
my $install_deps;
292+
$install_deps = "\n cpanm --installdeps ."
293+
if $self->skel_name ne 'default';
294+
290295
print qq{
291-
cd $app_path
296+
cd $app_path$install_deps
292297
plackup bin/app.psgi
293298
294-
To access your application, point your browser to http://localhost:5000
299+
To access your application, point your browser to http://localhost:5000/
295300
296301
If you need community assistance, the following resources are available:
297302
- Dancer website: https://perldancer.org
298-
- Twitter: https://twitter.com/PerlDancer/
299303
- GitHub: https://github.com/PerlDancer/Dancer2/
300304
- Mailing list: https://lists.perldancer.org/mailman/listinfo/dancer-users
301305
- IRC: irc.perl.org#dancer

0 commit comments

Comments
 (0)