http://mojoexample.herokuapp.com/ 에 Mojolicious 의 아주 좋은 샘플을 만들어 놓았지만, 2년전에 만들어져서 최신 버전에서 실행하려면 약간의 문제를 일으킵니다. 이를 조금 수정해서 제대로 돌아가게 해보았습니다.
Install MojoExample
start.sh 생성
실행
이제 입맛대로 고쳐서 원하는 사이트를 만들어봅시다. ^^
Install MojoExample
$ cpanm -n Mojolicious Modern::Perl DBIx::Class DateTime DateTime::Format::SQLite Time::Duration File::Slurp SQL::Translator $ git clone https://github.com/tempire/MojoExample.git /opt/project/project_name
바로 실행하면 에러가 발생하며, script/mojo_full의 마지막 줄을 아래와 같이 수정해주어야 합니다
... # Mojolicious::Commands->start; # 2012년 버전에는 존재하였으나, 지금(2014년)은 사라짐. Mojolicious::Commands->start_app('MojoFull');
# nohup morbo -m production -l http://*:8080 script/mojo_full & morbo -m development -l http://*:8080 script/mojo_full
$ ./start.sh
'Language > Perl' 카테고리의 다른 글
(Perl) 폴더 사이즈 구하기 (0) | 2014.05.03 |
---|---|
(Perl) Hitachi Storage 장애 체크 (Web) (0) | 2013.03.14 |
(Perl) SAN 스위치 장애 체크 (Telnet) (0) | 2013.03.11 |
Perl : 모듈 관리 (0) | 2012.11.05 |
Perl : StrawberryPerl 에서 PAR::Packer 설치하기 (0) | 2012.05.14 |