PHPを使っているすべての人が知るべき無料のPaaSサービス

PHP
symfonyをはじめ、フレームワークを稼働させるためには、ロリポップをはじめとした激安の共有サーバでは無理があります。低価格な候補としては、1年間マイクロインスタンスは無料のAmazon EC2や月額980円のさくらインターネットのVPSが手頃しょうか。しかし、まっさらなOSからの環境構築は、ハードルも高く、他の環境と混同して使うのが難しいのが実情です。

symfony1.4によるWebアプリケーション開発―オープンソース徹底活用 [単行本]

日本Symfonyユーザー会¥ 2,940


symfonyPHPPaaS cloudControl  symfony1.4 cakePHPCodeigniter
スポンサーリンク

cloudControlって?


cloudControl » Cloud hosting platform
11BoxcloudControl使使unlock

MySQLPHPMySQL

cloudControl  symfony1.4 

 cloudControl 


http://cloudcontrol.com/Sign-up now 

cloudControl » Cloud hosting platform

 


cloudControl » Sign up

 


cloudControl » Sign up
cloudControl activation code

 


cloudControl » Sign up

 


cloudControlcctrl

pythoneasy_install
$ sudo easy_install cctrl
Password:
Searching for cctrl
Reading http://pypi.python.org/simple/cctrl/
Reading https://launchpad.net/cctrl
Reading https://launchpad.net/cctrl/+download
Reading http://cloudcontrol.com
Best match: cctrl 1.0.0
Downloading http://launchpad.net/cctrl/trunk/1.0.0/+download/cctrl-1.0.0.zip
Processing cctrl-1.0.0.zip
.
.
.
(省略)
Installed /Library/Python/2.6/site-packages/httplib2-0.6.0-py2.6.egg
Finished processing dependencies for cctrl

cloudControl

ssh
$ cctrluser key.add ~/.ssh/id_rsa.pub
Email   : foobar@example.com
Password: 



ssh-add
$ ssh-add

ssh-addssh-add



 cloudControl cloudControlpush

 Git
 symfony
 cloudControlpush
 



Git

 http://cloudcontrol.com/developers/documentation/core-functions/repository/git/

 symfony


 symfony1.4 


$ mkdir -p lib/vendor
$ svn checkout http://svn.symfony-project.com/branches/1.4 ./lib/vendor/symfony
A    lib/vendor/symfony/test
A    lib/vendor/symfony/test/unit
A    lib/vendor/symfony/test/unit/sfContextMock.class.php
.
.
.
(省略)
$ php ./lib/vendor/symfony/data/bin/symfony generate:project ./
$ git init
Initialized empty Git repository in /Users/hirocaster/tmp/cloudControl/symfony/.git/
$ git add .
$ git commit -m "initial commit"

 symfonygit

cloudControl

MySQL

 symfony 
$ cctrlapp symfony create php
$ cctrlapp symfony/default addon.add mysql.free

MySQL
$ cctrlapp symfony/default addon mysql.free
Addon                    : mysql.free
  
 Settings
   mysql_password           : bLHmyYaienIU9c7
   mysql_dbsize             : 5
   mysql_database           : depeodkt583
   mysql_hostname           : 127.0.0.1
   mysql_username           : deaheirq583

MySQLsymfonyDB
$ ./symfony configure:database "mysql:host=127.0.0.1;dbname=depeodkt583" depeodkt583 bLHmyYaienIU9c7

config/databases.yml 

git 
$ git add config/databases.yml
$ git commit -m "Added MySQL settings"

 symfony


frontend symfony
$ ./symfony generate:app frontend

/app  git 
$ git add .
$ git commit -m "created app frontend"

 cloudControl


cloudControl 

./.ccconfig.yaml
BaseConfig:
   WebContent: /web
   AdminEmail: foobar@example.com

/web 

 git 
$ git add .ccconfig.yaml
$ git commit -m "Added cloudControl Config File"

 cloudControlpush


 git  cloudControl  push 
$ cctrlapp symfony/default push
ssh: Could not resolve hostname cloudcontrolled.com: nodename nor servname provided, or not known
fatal: The remote end hung up unexpectedly
Command '['/opt/local/bin/git', 'push', u'ssh://symfony@cloudcontrolled.com/repository.git', 'master']' returned non-zero exit status 128


$ nslookup cloudcontrolled.com
Non-authoritative answer:
Name:     cloudcontrolled.com
Address: 79.125.117.6
Name:     cloudcontrolled.com
Address: 79.125.117.4

ssh

~/.ssh/config 
Host cloudcontrolled.com
     Hostname 79.125.117.6

push
$ cctrlapp symfony/default push
Counting objects: 7893, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (7631/7631), done.
Writing objects: 100% (7893/7893), 6.05 MiB | 147 KiB/s, done.
Total 7893 (delta 2157), reused 0 (delta 0)
To ssh://symfony@cloudcontrolled.com/repository.git



 cloudControl


$  cctrlapp symfony/default deploy

http://symfony.cloudcontrolled.com/ 

http://symfony.cloudcontrolled.com/
symfony

 symfony 

symfony1.4によるWebアプリケーション開発―オープンソース徹底活用 [単行本]

日本Symfonyユーザー会¥ 2,940


git使TDD

PHPerSymfony2Symfony2

 (2011/03/29 19:56)


10Voucher

https://cloudcontrol.com/console/user/Billing AccountsVouchersJapanrocks

ありがとう、中の人!!

タイトルとURLをコピーしました