RedHat OpenShift ( PaaS ) 試用 ( on Ubuntu )

39 views
Skip to first unread message

Pofeng Lee ( 李柏鋒 )

unread,
May 8, 2011, 12:55:01 PM5/8/11
to cloudtw
帳號申請
https://openshift.redhat.com/app/

在 ubuntu 安裝 client
ref: https://www.redhat.com/openshift/kb/kb-e1000/installing-openshift-express-client-tools-on-non-rpm-based-systems
ref: https://openshift.redhat.com/app/getting_started/express

pofeng@ubuntu:~$ sudo apt-get install git-core openssh-client ruby-full
( 原文是裝 ruby ruby-dev rubygems, 但是缺了一些東西, 所以改裝 ruby-full :p )

pofeng@ubuntu:~$ sudo gem install --source http://gems.rubyforge.org
--source http://openshift.redhat.com/app/repo rhc

pofeng@ubuntu:~$ /var/lib/gems/1.8/bin/rhc-create-domain -n pofeng -l
pof...@XXXXXXXXX.com

pofeng@ubuntu:~$ /var/lib/gems/1.8/bin/rhc-create-app -a rhcapp -t php-5.3.2
Password: XXXXXXXXXXXXXXX

Success! Your application is now published here:

http://rhcapp-pofeng.rhcloud.com/

pofeng@ubuntu:~$ cd rhcapp/

pofeng@ubuntu:~/rhcapp$ vim php/index.php
( 寫 hello world )

pofeng@ubuntu:~/rhcapp$ git commit -a -m "My first change"

...

pofeng@ubuntu:~/rhcapp$ git push

( ok, now you can check http://rhcapp-pofeng.rhcloud.com/ )

--
Pofeng "informer" Lee, 李柏鋒, pofeng at gmail dot com

Reply all
Reply to author
Forward
0 new messages