ApacheにFastCGIでデプロイ

APP_ROUTE/public/.htaccess

 AddHandler fcgid-script .fcgi
 
 RewriteEngine On
 RewriteBase /myapp
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteRule ^(.*)$ index.fcgi [QSA,L]
 #!/usr/bin/perl
 use strict;
 use warnings;
 use lib qw(
   /var/www/my_app/lib
 );
 use Mojo::Server::FastCGI;
 use Data::Dumper;
 
 $ENV{MOJO_APP} = 'MyApp';
 $ENV{BASE_URL} = '/myapp/';
 
 Mojo::Server::FastCGI->new->run;

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS