Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Workaround to use the latest module version in ~/.perl6/lib and remov…

…ed :debug for now
  • Loading branch information...
commit 38ddb8b7c5e6ea3ec4c45293e2e2d5aec03f7be9 1 parent d34e770
@azawawi authored
Showing with 10 additions and 2 deletions.
  1. +9 −1 bin/farabi6
  2. +1 −1  lib/Farabi6.pm6
View
10 bin/farabi6
@@ -1,7 +1,15 @@
#!/usr/bin/env perl6
use v6;
-BEGIN { @*INC.unshift('./lib'); }
+BEGIN {
+ # Just in case we're installed on rakudo star.
+ # This will create a duplicate ~/.perl6/lib entry for now
+ # But hey at least it will work :)
+ @*INC.unshift(%*ENV{'HOME'} ~ '/.perl6/lib');
+
+ # The local lib takes priority for now
+ @*INC.unshift('./lib');
+}
use Farabi6;
View
2  lib/Farabi6.pm6
@@ -105,7 +105,7 @@ method run(Str $host, Int $port) is export {
];
}
- my $server = HTTP::Easy::PSGI.new(:debug, :host($host), :port($port));
+ my $server = HTTP::Easy::PSGI.new(:host($host), :port($port));
$server.app($app);
$server.run;
}
Please sign in to comment.
Something went wrong with that request. Please try again.