CF에 PHP 앱 올려보기

CF PHP 푸시하기
CF PHP 튜토리얼

1 사전 작업[ | ]

2 앱 작성[ | ]

root@zetawiki:~# mkdir my-php-app1
root@zetawiki:~# cd my-php-app1/
root@zetawiki:~/my-php-app1# vi index.php
<!DOCTYPE html>
<meta charset="utf-8" />
<h2>Hello PHP</h2>
<div>PHP 버전은 <?= PHP_VERSION ?>입니다.</div>
root@zetawiki:~/my-php-app1# vi manifest.yml
---
applications:
- name: my-php-app1
  memory: 32M

3 cf push[ | ]

root@zetawiki:~/my-php-app1# cf push
Using manifest file /root/my-php-app1/manifest.yml

Creating app my-php-app1 in org cloudpack / space testuser03 as testuser03...
OK

Creating route my-php-app1.devpack.co.kr...
OK

Binding my-php-app1.devpack.co.kr to my-php-app1...
OK

Uploading my-php-app1...
Uploading app files from: /root/my-php-app1
Uploading 150B, 1 files
Done uploading
... (생략)
Showing health and status for app my-php-app1 in org cloudpack / space testuser03 as testuser03...
OK

requested state: started
instances: 1/1
usage: 32M x 1 instances
urls: my-php-app1.devpack.co.kr
last uploaded: Wed Aug 10 01:21:22 UTC 2016
stack: unknown
buildpack: php 4.3.7

     state     since                    cpu    memory         disk           details
#0   running   2016-08-10 10:22:07 AM   0.0%   22.6M of 32M   124.7M of 1G

4 확인[ | ]

root@zetawiki:~/my-php-app1# curl https://my-php-app1.devpack.co.kr
<!DOCTYPE html>
<meta charset="utf-8" />
<h2>Hello PHP</h2>
<div>PHP 버전은 5.5.32입니다.</div>

5 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}