"CF에 워드프레스 올리기"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-source +syntaxhighlight))
 
(사용자 2명의 중간 판 11개는 보이지 않습니다)
1번째 줄: 1번째 줄:
{{테스트|devpack, phpmyadmin-cf}}
{{테스트|devpack, wordpress}}
==개요==
==개요==
;CF에 WordPress 올리기
;CF에 WordPress 올리기
13번째 줄: 13번째 줄:


==확인==
==확인==
<source lang='console'>
<syntaxhighlight lang='console'>
root@test1:~# cf services
root@test1:~# cf services
Getting services in org cloudpack / space testuser03 as testuser03...
Getting services in org cloudpack / space testuser03 as testuser03...
OK
OK


name           service      plan  bound apps  last operation
name   service      plan  bound apps  last operation
testuser03db   devpack-db  1gb                create succeeded
mydb1   devpack-db  1gb                create succeeded
</source>
</syntaxhighlight>
:→ 1GB DB서비스가 있고, 바인딩된 앱은 없음
:→ 1GB DB서비스가 있고, 바인딩된 앱은 없음


==wordpress 클론==
==wordpress 클론==
<source lang='console'>
<syntaxhighlight lang='console'>
root@test1:~# git clone https://github.com/jmnote/wordpress-cf.git
root@test1:~# git clone https://github.com/jmnote/wordpress-cf.git
Cloning into 'wordpress-cf'...
Cloning into 'wordpress-cf'...
33번째 줄: 33번째 줄:
Resolving deltas: 100% (388/388), done.
Resolving deltas: 100% (388/388), done.
Checking connectivity... done.
Checking connectivity... done.
</source>
</syntaxhighlight>


==manifest.yml 수정==
==manifest.yml 수정==
* [[manifest.yml]]에 사용할 서브도메인, 연결할 서비스명을 추가 기재하자.
* [[manifest.yml]]에 사용할 서브도메인, 연결할 DB서비스명을 수정 기입하자.
<source lang='console'>
<syntaxhighlight lang='console'>
root@test1:~# cd wordpress-cf/
root@test1:~# cd wordpress-cf/
root@test1:~/wordpress-cf# vi manifest.yml
root@test1:~/wordpress-cf# vi manifest.yml
</source>
</syntaxhighlight>
<source lang='yaml' highlight='7-14'>
<syntaxhighlight lang='yaml' highlight='7-9'>
---
---
applications:
applications:
50번째 줄: 50번째 줄:
   host: wordpress-jmnote
   host: wordpress-jmnote
   services:
   services:
   - testuser03db
   - mydb1
  #env:
</syntaxhighlight>
    #SSH_HOST: user@your-ssh-server
:→ mydb1 서비스가 앱에 연결됨
    #SSH_PATH: /full/or/relative/path/on/ssh/server
    #SSH_KEY_NAME: sshfs_rsa
    #SSH_OPTS: '["cache=yes", "kernel_cache", "compression=no", "large_read"]'
</source>
:→ testuser03db 서비스가 앱에 연결됨


==cf push==
==cf push==
<source lang='console'>
<syntaxhighlight lang='console'>
root@test1:~/wordpress-cf# cf push
root@test1:~/wordpress-cf# cf push
Using manifest file /root/wordpress-cf/manifest.yml
Using manifest file /root/wordpress-cf/manifest.yml


Updating app mywordpress in org cloudpack / space devpack03 as devpack03...
Updating app mywordpress in org cloudpack / space testuser03 as testuser03...
OK
OK


91번째 줄: 86번째 줄:
     state    since                    cpu    memory        disk        details
     state    since                    cpu    memory        disk        details
#0  running  2016-08-23 08:00:17 PM  33.8%  69M of 128M  162M of 1G
#0  running  2016-08-23 08:00:17 PM  33.8%  69M of 128M  162M of 1G
</source>
</syntaxhighlight>


==확인==
==확인==
100번째 줄: 95번째 줄:
* [[CF에 phpMyAdmin 올리기]]
* [[CF에 phpMyAdmin 올리기]]


==참고 자료==
==참고==
* https://github.com/jmnote/wordpress-cf
* https://github.com/dmikusa-pivotal/cf-ex-phpmyadmin
* https://github.com/dmikusa-pivotal/cf-ex-phpmyadmin
* https://github.com/cloudfoundry-community/phpmyadmin-cf
* https://github.com/cloudfoundry-community/phpmyadmin-cf

2020년 11월 2일 (월) 00:55 기준 최신판

1 개요[ | ]

CF에 WordPress 올리기
CF에 워드프레스 올리기
  • VCAP_SERVICES 중 MySQL이 있으면 그 정보를 활용하도록 되어 있음
cf cs로 등록한 서비스는 알아서 인식됨 (tags에 mysql이 있음)
cf cups로 등록한 서비스는 서비스 이름에 mysql이 포함되어야 인식됨

2 사전 작업[ | ]

3 확인[ | ]

root@test1:~# cf services
Getting services in org cloudpack / space testuser03 as testuser03...
OK

name    service      plan   bound apps   last operation
mydb1   devpack-db   1gb                 create succeeded
→ 1GB DB서비스가 있고, 바인딩된 앱은 없음

4 wordpress 클론[ | ]

root@test1:~# git clone https://github.com/jmnote/wordpress-cf.git
Cloning into 'wordpress-cf'...
remote: Counting objects: 1852, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 1852 (delta 1), reused 0 (delta 0), pack-reused 1846
Receiving objects: 100% (1852/1852), 6.35 MiB | 2.80 MiB/s, done.
Resolving deltas: 100% (388/388), done.
Checking connectivity... done.

5 manifest.yml 수정[ | ]

  • manifest.yml에 사용할 서브도메인, 연결할 DB서비스명을 수정 기입하자.
root@test1:~# cd wordpress-cf/
root@test1:~/wordpress-cf# vi manifest.yml
---
applications:
- name: mywordpress
  memory: 128M
  path: .
  buildpack: https://github.com/cloudfoundry/php-buildpack
  host: wordpress-jmnote
  services:
  - mydb1
→ mydb1 서비스가 앱에 연결됨

6 cf push[ | ]

root@test1:~/wordpress-cf# cf push
Using manifest file /root/wordpress-cf/manifest.yml

Updating app mywordpress in org cloudpack / space testuser03 as testuser03...
OK

Creating route wordpress-jmnote.devpack.co.kr...
OK

Binding wordpress-jmnote.devpack.co.kr to mywordpress...
OK

Uploading mywordpress...
Uploading app files from: /root/wordpress-cf
Uploading 20.9K, 7 files
Done uploading               
OK
Binding service mydb1 to app mywordpress in org cloudpack / space testuser03 as testuser03...
OK
... (생략)
requested state: started
instances: 1/1
usage: 128M x 1 instances
urls: wordpress-jmnote.devpack.co.kr
last uploaded: Tue Aug 23 10:59:21 UTC 2016
stack: unknown
buildpack: https://github.com/cloudfoundry/php-buildpack

     state     since                    cpu     memory        disk         details
#0   running   2016-08-23 08:00:17 PM   33.8%   69M of 128M   162M of 1G

7 확인[ | ]

8 같이 보기[ | ]

9 참고[ | ]

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