2012-02-26から1日間の記事一覧

dotCloud で Django

$ mkdir django $ cd django $ gedit dotcloud.yml www: type: python $ sudo yum install Django $ django-admin.py startproject bucho $ gedit wsgi.py # -*- coding: utf-8 -*- import os import sys os.environ['DJANGO_SETTINGS_MODULE'] = 'bucho.set…

dotCloud で Mojolicious hello world

$ mkdir mojo $ cd mojo $ gedit dotcloud.yml www: type: perl $ gedit Makefile.PL PREREQ_PM => {'Mojolicious' => '1.21'}$ gedit app.psgi $ENV{MOJO_MODE} = 'production'; require 'myapp.pl'; $ gedit myapp.pl #!/usr/bin/env perl use Mojolicious…

dotCloud で PSGI/Plack hello world

$ mkdir psgi $ cd psgi $ gedit dotcloud.yml www: type: perl approot: helloperl $ mkdir helloperl $ cd helloperl $ gedit Makefile.PL PREREQ_PM => { 'Test::More' => 0, 'YAML' => 0, 'Dancer' => 1.3030, 'Plack' => 0.9974, },$ gedit app.psgi my…

PSGI/Plack でHello World

hello.psgi my $app = sub { my $env = shift; return [ 200, [ 'Content-Type' => 'text/plain' ], [ "Hello World" ], ]; }; $ sudo yum install perl-Plack $ plackup hello.psgi 参考 PSGI/Plack

Catalyst

$ sudo yum install "perl-Catalyst*"$ catalyst.pl MyApp$ cd MyApp$ script/myapp_server.pl -r 参考--