2008年9月24日水曜日

FreeBSD ports google-appengineをインストールする

GoogleのApp Enngineの開発環境 google-appengine があります。
FreeBSDでは、portsからインストールすることが可能です。
下記コマンドでインストールできます。
cd /usr/ports/www/google-appengine
sudo make install clean


/bin/mkdir -p /usr/local/share/google-appengine
cd /usr/ports/www/google-appengine/work/google_appengine && /bin/sh -c '(/usr/bin/find -d $0 $2 | /usr/bin/cpio -dumpl $1 >/dev/null 2>&1) && /usr/sbin/chown -R root:wheel $1 && /usr/bin/find $1/ -type d -exec chmod 755 {} \; && /usr/bin/find $1/ -type f -exec chmod 444 {} \;' -- "google lib new_project_template templates tools" /usr/local/share/google-appengine "-not -path './demos*' -and -mindepth 1"
cd /usr/ports/www/google-appengine/work/google_appengine && /bin/sh -c '(/usr/bin/find -d $0 $2 | /usr/bin/cpio -dumpl $1 >/dev/null 2>&1) && /usr/sbin/chown -R root:wheel $1 && /usr/bin/find $1/ -type d -exec chmod 755 {} \; && /usr/bin/find $1/ -type f -exec chmod 444 {} \;' -- demos /usr/local/share/examples/google-appengine
/bin/mkdir -p /usr/local/share/doc/google-appengine
install -o root -g wheel -m 444 /usr/ports/www/google-appengine/work/google_appengine/LICENSE /usr/ports/www/google-appengine/work/google_appengine/README /usr/local/share/doc/google-appengine
install -o root -g wheel -m 555 /usr/ports/www/google-appengine/work/google_appengine/dev_appserver.py /usr/local/share/google-appengine
install -o root -g wheel -m 555 /usr/ports/www/google-appengine/work/google_appengine/appcfg.py /usr/local/share/google-appengine
install -o root -g wheel -m 444 /usr/ports/www/google-appengine/work/google_appengine/VERSION /usr/local/share/google-appengine
/bin/ln -s /usr/local/share/google-appengine/dev_appserver.py /usr/local/bin/dev_appserver.py
/bin/ln -s /usr/local/share/google-appengine/appcfg.py /usr/local/bin/appcfg.py



コマンドラインオプション

Runs a development application server for an application.

dev_appserver.py [options]

Application root must be the path to the application to run in this server.
Must contain a valid app.yaml or app.yml file.

Options:
--help, -h View this helpful message.
--debug, -d Use debug logging. (Default false)
--clear_datastore, -c Clear the Datastore on startup. (Default false)
--address=ADDRESS, -a ADDRESS
Address to which this server should bind. (Default
localhost).
--port=PORT, -p PORT Port for the server to run on. (Default 8080)
--datastore_path=PATH Path to use for storing Datastore file stub data.
(Default /tmp/dev_appserver.datastore)
--history_path=PATH Path to use for storing Datastore history.
(Default /tmp/dev_appserver.datastore.history)
--require_indexes Disallows queries that require composite indexes
not defined in index.yaml.
--smtp_host=HOSTNAME SMTP host to send test mail to. Leaving this
unset will disable SMTP mail sending.
(Default '')
--smtp_port=PORT SMTP port to send test mail to.
(Default 25)
--smtp_user=USER SMTP user to connect as. Stub will only attempt
to login if this field is non-empty.
(Default '').
--smtp_password=PASSWORD Password for SMTP server.
(Default '')
--enable_sendmail Enable sendmail when SMTP not configured.
(Default false)
--show_mail_body Log the body of emails in mail stub.
(Default false)
--auth_domain Authorization domain that this app runs in.
(Default gmail.com)
--debug_imports Enables debug logging for module imports, showing
search paths used for finding modules and any
errors encountered during the import process.

0 コメント: