OpenShift
Re: OpenShift
root@X4-640:/home/yehlu#
正在讀取套件清單... 完成
正在重建相依關係
正在讀取狀態資料... 完成
git 已經是最新版本了。
以下套件為自動安裝,並且已經無用:
thunderbird-globalmenu
使用 'apt-get autoremove' 來將其移除。
下列的額外套件將被安裝:
build-essential dpkg-dev g++ g++-4.6 libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl
libdpkg-perl libreadline5 libruby1.8 libstdc++6-4.6-dev ruby1.8 ruby1.8-dev
建議套件:
debian-keyring g++-multilib g++-4.6-multilib gcc-4.6-doc libstdc++6-4.6-dbg libstdc++6-4.6-doc ri ruby-dev
ruby1.8-examples ri1.8
下列【新】套件將會被安裝:
build-essential dpkg-dev g++ g++-4.6 libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl
libdpkg-perl libreadline5 libruby1.8 libstdc++6-4.6-dev ruby ruby1.8 ruby1.8-dev rubygems
升級 0 個,新安裝 15 個,移除 0 個,有 10 個未被升級。
需要下載 12.1 MB 的套件檔。
此操作完成之後,會多佔用 39.4 MB 的磁碟空間。
是否繼續進行 [Y/n]?Y
下載:1 http://free.nchc.org.tw/ubuntu/ precise/main libreadline5 i386 5.2-11 [123 kB]
下載:2 http://free.nchc.org.tw/ubuntu/ precise/main libstdc++6-4.6-dev i386 4.6.3-1ubuntu5 [1,643 kB]
下載:3 http://free.nchc.org.tw/ubuntu/ precise/main g++-4.6 i386 4.6.3-1ubuntu5 [6,745 kB]
下載:4 http://free.nchc.org.tw/ubuntu/ precise/main g++ i386 4:4.6.3-1ubuntu5 [1,444 B]
下載:5 http://free.nchc.org.tw/ubuntu/ precise-updates/main libdpkg-perl all 1.16.1.2ubuntu7.1 [180 kB]
下載:6 http://free.nchc.org.tw/ubuntu/ precise-updates/main dpkg-dev all 1.16.1.2ubuntu7.1 [469 kB]
下載:7 http://free.nchc.org.tw/ubuntu/ precise-updates/main build-essential i386 11.5ubuntu2.1 [5,796 B]
下載:8 http://free.nchc.org.tw/ubuntu/ precise/main libalgorithm-diff-perl all 1.19.02-2 [50.7 kB]
下載:9 http://free.nchc.org.tw/ubuntu/ precise/main libalgorithm-diff-xs-perl i386 0.04-2build2 [12.9 kB]
下載:10 http://free.nchc.org.tw/ubuntu/ precise/main libalgorithm-merge-perl all 0.08-2 [12.7 kB]
下載:11 http://free.nchc.org.tw/ubuntu/ precise-updates/main libruby1.8 i386 1.8.7.352-2ubuntu1.3 [1,784 kB]
下載:12 http://free.nchc.org.tw/ubuntu/ precise-updates/main ruby1.8 i386 1.8.7.352-2ubuntu1.3 [33.7 kB]
下載:13 http://free.nchc.org.tw/ubuntu/ precise/main ruby all 4.8 [5,054 B]
下載:14 http://free.nchc.org.tw/ubuntu/ precise-updates/main ruby1.8-dev i386 1.8.7.352-2ubuntu1.3 [626 kB]
下載:15 http://free.nchc.org.tw/ubuntu/ precise-updates/main rubygems all 1.8.15-1ubuntu0.1 [449 kB]
取得 12.1 MB 用了 3秒 (3,106 kB/s)
選取了原先未選的套件 libreadline5。
(正在讀取資料庫 ... 目前共安裝了 332977 個檔案和目錄。)
正在解開 libreadline5 (從 .../libreadline5_5.2-11_i386.deb)...
選取了原先未選的套件 libstdc++6-4.6-dev。
正在解開 libstdc++6-4.6-dev (從 .../libstdc++6-4.6-dev_4.6.3-1ubuntu5_i386.deb)...
選取了原先未選的套件 g++-4.6。
正在解開 g++-4.6 (從 .../g++-4.6_4.6.3-1ubuntu5_i386.deb)...
選取了原先未選的套件 g++。
正在解開 g++ (從 .../g++_4%3a4.6.3-1ubuntu5_i386.deb)...
選取了原先未選的套件 libdpkg-perl。
正在解開 libdpkg-perl (從 .../libdpkg-perl_1.16.1.2ubuntu7.1_all.deb)...
選取了原先未選的套件 dpkg-dev。
正在解開 dpkg-dev (從 .../dpkg-dev_1.16.1.2ubuntu7.1_all.deb)...
選取了原先未選的套件 build-essential。
正在解開 build-essential (從 .../build-essential_11.5ubuntu2.1_i386.deb)...
選取了原先未選的套件 libalgorithm-diff-perl。
正在解開 libalgorithm-diff-perl (從 .../libalgorithm-diff-perl_1.19.02-2_all.deb)...
選取了原先未選的套件 libalgorithm-diff-xs-perl。
正在解開 libalgorithm-diff-xs-perl (從 .../libalgorithm-diff-xs-perl_0.04-2build2_i386.deb)...
選取了原先未選的套件 libalgorithm-merge-perl。
正在解開 libalgorithm-merge-perl (從 .../libalgorithm-merge-perl_0.08-2_all.deb)...
選取了原先未選的套件 libruby1.8。
正在解開 libruby1.8 (從 .../libruby1.8_1.8.7.352-2ubuntu1.3_i386.deb)...
選取了原先未選的套件 ruby1.8。
正在解開 ruby1.8 (從 .../ruby1.8_1.8.7.352-2ubuntu1.3_i386.deb)...
選取了原先未選的套件 ruby。
正在解開 ruby (從 .../apt/archives/ruby_4.8_all.deb)...
選取了原先未選的套件 ruby1.8-dev。
正在解開 ruby1.8-dev (從 .../ruby1.8-dev_1.8.7.352-2ubuntu1.3_i386.deb)...
選取了原先未選的套件 rubygems。
正在解開 rubygems (從 .../rubygems_1.8.15-1ubuntu0.1_all.deb)...
正在進行 man-db 的觸發程式 ...
正在進行 menu 的觸發程式 ...
正在設定 libreadline5 (5.2-11) ...
正在設定 libdpkg-perl (1.16.1.2ubuntu7.1) ...
正在設定 dpkg-dev (1.16.1.2ubuntu7.1) ...
正在設定 libalgorithm-diff-perl (1.19.02-2) ...
正在設定 libalgorithm-diff-xs-perl (0.04-2build2) ...
正在設定 libalgorithm-merge-perl (0.08-2) ...
正在設定 libruby1.8 (1.8.7.352-2ubuntu1.3) ...
正在設定 ruby1.8 (1.8.7.352-2ubuntu1.3) ...
update-alternatives: using /usr/bin/ruby1.8 to provide /usr/bin/ruby (ruby) in 自動模式.
正在設定 ruby (4.8) ...
正在設定 ruby1.8-dev (1.8.7.352-2ubuntu1.3) ...
正在設定 rubygems (1.8.15-1ubuntu0.1) ...
正在設定 libstdc++6-4.6-dev (4.6.3-1ubuntu5) ...
正在設定 g++-4.6 (4.6.3-1ubuntu5) ...
正在設定 g++ (4:4.6.3-1ubuntu5) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in 自動模式.
正在設定 build-essential (11.5ubuntu2.1) ...
正在進行 libc-bin 的觸發程式 ...
ldconfig deferred processing now taking place
正在進行 menu 的觸發程式 ...
root@X4-640:/home/yehlu#
Fetching: net-ssh-2.7.0.gem (100%)
Fetching: archive-tar-minitar-0.5.2.gem (100%)
Fetching: highline-1.6.19.gem (100%)
Fetching: commander-4.1.5.gem (100%)
Fetching: httpclient-2.3.4.1.gem (100%)
Fetching: open4-1.3.0.gem (100%)
Fetching: rhc-1.14.7.gem (100%)
===========================================================================
If this is your first time installing the RHC tools, please run 'rhc setup'
===========================================================================
Successfully installed net-ssh-2.7.0
Successfully installed archive-tar-minitar-0.5.2
Successfully installed highline-1.6.19
Successfully installed commander-4.1.5
Successfully installed httpclient-2.3.4.1
Successfully installed open4-1.3.0
Successfully installed rhc-1.14.7
7 gems installed
Installing ri documentation for net-ssh-2.7.0...
Installing ri documentation for archive-tar-minitar-0.5.2...
Installing ri documentation for highline-1.6.19...
Installing ri documentation for commander-4.1.5...
Installing ri documentation for httpclient-2.3.4.1...
RDoc failure in lib/httpclient.rb at or around line 408 column 16
Before reporting this, could you check that the file
you're documenting compiles cleanly--RDoc is not a
full Ruby parser, and gets confused easily if fed
invalid programs.
The internal error was:
ERROR: While generating documentation for httpclient-2.3.4.1
... MESSAGE: undefined method `name' for #<RubyToken::TkLPAREN:0xb4b549c4>
... RDOC args: --ri --op /var/lib/gems/1.8/doc/httpclient-2.3.4.1/ri lib --title httpclient-2.3.4.1 Documentation --quiet
代碼: 選擇全部
sudo apt-get install git ruby rubygems
正在重建相依關係
正在讀取狀態資料... 完成
git 已經是最新版本了。
以下套件為自動安裝,並且已經無用:
thunderbird-globalmenu
使用 'apt-get autoremove' 來將其移除。
下列的額外套件將被安裝:
build-essential dpkg-dev g++ g++-4.6 libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl
libdpkg-perl libreadline5 libruby1.8 libstdc++6-4.6-dev ruby1.8 ruby1.8-dev
建議套件:
debian-keyring g++-multilib g++-4.6-multilib gcc-4.6-doc libstdc++6-4.6-dbg libstdc++6-4.6-doc ri ruby-dev
ruby1.8-examples ri1.8
下列【新】套件將會被安裝:
build-essential dpkg-dev g++ g++-4.6 libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl
libdpkg-perl libreadline5 libruby1.8 libstdc++6-4.6-dev ruby ruby1.8 ruby1.8-dev rubygems
升級 0 個,新安裝 15 個,移除 0 個,有 10 個未被升級。
需要下載 12.1 MB 的套件檔。
此操作完成之後,會多佔用 39.4 MB 的磁碟空間。
是否繼續進行 [Y/n]?Y
下載:1 http://free.nchc.org.tw/ubuntu/ precise/main libreadline5 i386 5.2-11 [123 kB]
下載:2 http://free.nchc.org.tw/ubuntu/ precise/main libstdc++6-4.6-dev i386 4.6.3-1ubuntu5 [1,643 kB]
下載:3 http://free.nchc.org.tw/ubuntu/ precise/main g++-4.6 i386 4.6.3-1ubuntu5 [6,745 kB]
下載:4 http://free.nchc.org.tw/ubuntu/ precise/main g++ i386 4:4.6.3-1ubuntu5 [1,444 B]
下載:5 http://free.nchc.org.tw/ubuntu/ precise-updates/main libdpkg-perl all 1.16.1.2ubuntu7.1 [180 kB]
下載:6 http://free.nchc.org.tw/ubuntu/ precise-updates/main dpkg-dev all 1.16.1.2ubuntu7.1 [469 kB]
下載:7 http://free.nchc.org.tw/ubuntu/ precise-updates/main build-essential i386 11.5ubuntu2.1 [5,796 B]
下載:8 http://free.nchc.org.tw/ubuntu/ precise/main libalgorithm-diff-perl all 1.19.02-2 [50.7 kB]
下載:9 http://free.nchc.org.tw/ubuntu/ precise/main libalgorithm-diff-xs-perl i386 0.04-2build2 [12.9 kB]
下載:10 http://free.nchc.org.tw/ubuntu/ precise/main libalgorithm-merge-perl all 0.08-2 [12.7 kB]
下載:11 http://free.nchc.org.tw/ubuntu/ precise-updates/main libruby1.8 i386 1.8.7.352-2ubuntu1.3 [1,784 kB]
下載:12 http://free.nchc.org.tw/ubuntu/ precise-updates/main ruby1.8 i386 1.8.7.352-2ubuntu1.3 [33.7 kB]
下載:13 http://free.nchc.org.tw/ubuntu/ precise/main ruby all 4.8 [5,054 B]
下載:14 http://free.nchc.org.tw/ubuntu/ precise-updates/main ruby1.8-dev i386 1.8.7.352-2ubuntu1.3 [626 kB]
下載:15 http://free.nchc.org.tw/ubuntu/ precise-updates/main rubygems all 1.8.15-1ubuntu0.1 [449 kB]
取得 12.1 MB 用了 3秒 (3,106 kB/s)
選取了原先未選的套件 libreadline5。
(正在讀取資料庫 ... 目前共安裝了 332977 個檔案和目錄。)
正在解開 libreadline5 (從 .../libreadline5_5.2-11_i386.deb)...
選取了原先未選的套件 libstdc++6-4.6-dev。
正在解開 libstdc++6-4.6-dev (從 .../libstdc++6-4.6-dev_4.6.3-1ubuntu5_i386.deb)...
選取了原先未選的套件 g++-4.6。
正在解開 g++-4.6 (從 .../g++-4.6_4.6.3-1ubuntu5_i386.deb)...
選取了原先未選的套件 g++。
正在解開 g++ (從 .../g++_4%3a4.6.3-1ubuntu5_i386.deb)...
選取了原先未選的套件 libdpkg-perl。
正在解開 libdpkg-perl (從 .../libdpkg-perl_1.16.1.2ubuntu7.1_all.deb)...
選取了原先未選的套件 dpkg-dev。
正在解開 dpkg-dev (從 .../dpkg-dev_1.16.1.2ubuntu7.1_all.deb)...
選取了原先未選的套件 build-essential。
正在解開 build-essential (從 .../build-essential_11.5ubuntu2.1_i386.deb)...
選取了原先未選的套件 libalgorithm-diff-perl。
正在解開 libalgorithm-diff-perl (從 .../libalgorithm-diff-perl_1.19.02-2_all.deb)...
選取了原先未選的套件 libalgorithm-diff-xs-perl。
正在解開 libalgorithm-diff-xs-perl (從 .../libalgorithm-diff-xs-perl_0.04-2build2_i386.deb)...
選取了原先未選的套件 libalgorithm-merge-perl。
正在解開 libalgorithm-merge-perl (從 .../libalgorithm-merge-perl_0.08-2_all.deb)...
選取了原先未選的套件 libruby1.8。
正在解開 libruby1.8 (從 .../libruby1.8_1.8.7.352-2ubuntu1.3_i386.deb)...
選取了原先未選的套件 ruby1.8。
正在解開 ruby1.8 (從 .../ruby1.8_1.8.7.352-2ubuntu1.3_i386.deb)...
選取了原先未選的套件 ruby。
正在解開 ruby (從 .../apt/archives/ruby_4.8_all.deb)...
選取了原先未選的套件 ruby1.8-dev。
正在解開 ruby1.8-dev (從 .../ruby1.8-dev_1.8.7.352-2ubuntu1.3_i386.deb)...
選取了原先未選的套件 rubygems。
正在解開 rubygems (從 .../rubygems_1.8.15-1ubuntu0.1_all.deb)...
正在進行 man-db 的觸發程式 ...
正在進行 menu 的觸發程式 ...
正在設定 libreadline5 (5.2-11) ...
正在設定 libdpkg-perl (1.16.1.2ubuntu7.1) ...
正在設定 dpkg-dev (1.16.1.2ubuntu7.1) ...
正在設定 libalgorithm-diff-perl (1.19.02-2) ...
正在設定 libalgorithm-diff-xs-perl (0.04-2build2) ...
正在設定 libalgorithm-merge-perl (0.08-2) ...
正在設定 libruby1.8 (1.8.7.352-2ubuntu1.3) ...
正在設定 ruby1.8 (1.8.7.352-2ubuntu1.3) ...
update-alternatives: using /usr/bin/ruby1.8 to provide /usr/bin/ruby (ruby) in 自動模式.
正在設定 ruby (4.8) ...
正在設定 ruby1.8-dev (1.8.7.352-2ubuntu1.3) ...
正在設定 rubygems (1.8.15-1ubuntu0.1) ...
正在設定 libstdc++6-4.6-dev (4.6.3-1ubuntu5) ...
正在設定 g++-4.6 (4.6.3-1ubuntu5) ...
正在設定 g++ (4:4.6.3-1ubuntu5) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in 自動模式.
正在設定 build-essential (11.5ubuntu2.1) ...
正在進行 libc-bin 的觸發程式 ...
ldconfig deferred processing now taking place
正在進行 menu 的觸發程式 ...
root@X4-640:/home/yehlu#
代碼: 選擇全部
su -c 'gem install rhc'
Fetching: archive-tar-minitar-0.5.2.gem (100%)
Fetching: highline-1.6.19.gem (100%)
Fetching: commander-4.1.5.gem (100%)
Fetching: httpclient-2.3.4.1.gem (100%)
Fetching: open4-1.3.0.gem (100%)
Fetching: rhc-1.14.7.gem (100%)
===========================================================================
If this is your first time installing the RHC tools, please run 'rhc setup'
===========================================================================
Successfully installed net-ssh-2.7.0
Successfully installed archive-tar-minitar-0.5.2
Successfully installed highline-1.6.19
Successfully installed commander-4.1.5
Successfully installed httpclient-2.3.4.1
Successfully installed open4-1.3.0
Successfully installed rhc-1.14.7
7 gems installed
Installing ri documentation for net-ssh-2.7.0...
Installing ri documentation for archive-tar-minitar-0.5.2...
Installing ri documentation for highline-1.6.19...
Installing ri documentation for commander-4.1.5...
Installing ri documentation for httpclient-2.3.4.1...
RDoc failure in lib/httpclient.rb at or around line 408 column 16
Before reporting this, could you check that the file
you're documenting compiles cleanly--RDoc is not a
full Ruby parser, and gets confused easily if fed
invalid programs.
The internal error was:
ERROR: While generating documentation for httpclient-2.3.4.1
... MESSAGE: undefined method `name' for #<RubyToken::TkLPAREN:0xb4b549c4>
... RDOC args: --ri --op /var/lib/gems/1.8/doc/httpclient-2.3.4.1/ri lib --title httpclient-2.3.4.1 Documentation --quiet
Re: OpenShift
http://stackoverflow.com/questions/9562 ... alling-gem
代碼: 選擇全部
su -c 'gem install rhc --no-rdoc --no-ri'
Re: OpenShift
代碼: 選擇全部
ssh-keygen -t ssh-rsa
rhc sshkey add default ../.ssh/id_rsa.pub
rhc sshkey list
Re: OpenShift
yehlu@X4-640:~/OPENSHIFT$
Cloning into 'test'...
remote: Counting objects: 20, done.
remote: Compressing objects: 100% (15/15), done.
remote: Total 20 (delta 0), reused 20 (delta 0)
Receiving objects: 100% (20/20), 5.58 KiB, done.
代碼: 選擇全部
git clone "ssh://5242779d50044630ae0000ec@test-yehlu.rhcloud.com/~/git/test.git/"
remote: Counting objects: 20, done.
remote: Compressing objects: 100% (15/15), done.
remote: Total 20 (delta 0), reused 20 (delta 0)
Receiving objects: 100% (20/20), 5.58 KiB, done.
Re: OpenShift
http://nswish.iteye.com/blog/1638587
Terimal 1
yehlu@localhost:~$
Checking available ports ... done
Forwarding ports ...
To connect to a service running on OpenShift, use the Local address
Service Local OpenShift
------- -------------- ---- ------------------
httpd 127.0.0.1:8080 => 11.22.33.44:8080
mysql 127.0.0.1:3306 => 11.22.33.44:3306
Press CTRL-C to terminate port forwarding
----------------------------------------------------------------------------------
Terimal 2
yehlu@localhost:~$ mysql -u admin -h 127.0.0.1 -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.1.69 Source distribution
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
Terimal 1
yehlu@localhost:~$
代碼: 選擇全部
rhc port-forward test
Forwarding ports ...
To connect to a service running on OpenShift, use the Local address
Service Local OpenShift
------- -------------- ---- ------------------
httpd 127.0.0.1:8080 => 11.22.33.44:8080
mysql 127.0.0.1:3306 => 11.22.33.44:3306
Press CTRL-C to terminate port forwarding
----------------------------------------------------------------------------------
Terimal 2
yehlu@localhost:~$ mysql -u admin -h 127.0.0.1 -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.1.69 Source distribution
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
windows rhc install
Ruby
http://rubyinstaller.org/downloads/
Git
http://git-scm.com/download/win
http://rubyinstaller.org/downloads/
Git
http://git-scm.com/download/win
代碼: 選擇全部
gem install rhc
Re: OpenShift
$ git push
warning: push.default is unset; its implicit value is changing in
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the current behavior after the default changes, use:
git config --global push.default matching
To squelch this message and adopt the new behavior now, use:
git config --global push.default simple
See 'git help config' and search for 'push.default' for further information.
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
'current' instead of 'simple' if you sometimes use older versions of Git)
Counting objects: 7, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (4/4), 331 bytes | 0 bytes/s, done.
Total 4 (delta 2), reused 0 (delta 0)
remote: CLIENT_MESSAGE: Stopping Zend Server Console
remote: Stopping Zend Server GUI [Lighttpd] [OK]
remote: CLIENT_MESSAGE: Stopping Zend Server JobQueue daemon
remote: Stopping JobQueue [OK]
remote: CLIENT_MESSAGE: Stopping Apache
remote: CLIENT_MESSAGE: Stopping Zend Server Monitor node
remote: Stopping Zend Server Monitor node [OK]
remote: CLIENT_MESSAGE: Stopping Zend Server Deployment daemon
remote: Stopping Deployment [FAILED]
remote: CLIENT_RESULT: Zend Server 5.6 stopped successfully
remote: Starting application zend
remote: TODO
remote: CLIENT_MESSAGE: Starting Zend Server Deployment daemon
remote: Starting Deployment [OK]
remote: [28.09.2013 04:19:04 SYSTEM] watchdog for zdd is running.
remote: [28.09.2013 04:19:04 SYSTEM] zdd is running.
remote: CLIENT_MESSAGE: Starting Zend Server Monitor node
remote: Starting Zend Server Monitor node [OK]
remote: [28.09.2013 04:19:05 SYSTEM] watchdog for monitor is running.
remote: [28.09.2013 04:19:05 SYSTEM] monitor is running.
remote: CLIENT_MESSAGE: Starting Apache
remote: CLIENT_MESSAGE: Starting Zend Server JobQueue daemon
remote: Starting JobQueue [OK]
remote: [28.09.2013 04:19:07 SYSTEM] watchdog for jqd is running.
remote: [28.09.2013 04:19:07 SYSTEM] jqd is running.
remote: CLIENT_MESSAGE: Starting Zend Server Console
remote: spawn-fcgi: child spawned successfully: PID: 14797
remote: Starting Zend Server GUI [Lighttpd] [OK]
remote: [28.09.2013 04:19:10 SYSTEM] watchdog for lighttpd is running.
remote: [28.09.2013 04:19:10 SYSTEM] lighttpd is running.
remote: CLIENT_RESULT: Zend Server 5.6 started successfully
To ssh://524687d14382ecf8b7000135@zend-yehlu.rhcloud.com/~/git/zend.git/
dc474ef..9356c97 master -> master
Yehlu@YEHLU-VAIO /c/Z/OPENSHIFT/zend/php (master)
warning: push.default is unset; its implicit value is changing in
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the current behavior after the default changes, use:
git config --global push.default matching
To squelch this message and adopt the new behavior now, use:
git config --global push.default simple
See 'git help config' and search for 'push.default' for further information.
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
'current' instead of 'simple' if you sometimes use older versions of Git)
Counting objects: 7, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (4/4), 331 bytes | 0 bytes/s, done.
Total 4 (delta 2), reused 0 (delta 0)
remote: CLIENT_MESSAGE: Stopping Zend Server Console
remote: Stopping Zend Server GUI [Lighttpd] [OK]
remote: CLIENT_MESSAGE: Stopping Zend Server JobQueue daemon
remote: Stopping JobQueue [OK]
remote: CLIENT_MESSAGE: Stopping Apache
remote: CLIENT_MESSAGE: Stopping Zend Server Monitor node
remote: Stopping Zend Server Monitor node [OK]
remote: CLIENT_MESSAGE: Stopping Zend Server Deployment daemon
remote: Stopping Deployment [FAILED]
remote: CLIENT_RESULT: Zend Server 5.6 stopped successfully
remote: Starting application zend
remote: TODO
remote: CLIENT_MESSAGE: Starting Zend Server Deployment daemon
remote: Starting Deployment [OK]
remote: [28.09.2013 04:19:04 SYSTEM] watchdog for zdd is running.
remote: [28.09.2013 04:19:04 SYSTEM] zdd is running.
remote: CLIENT_MESSAGE: Starting Zend Server Monitor node
remote: Starting Zend Server Monitor node [OK]
remote: [28.09.2013 04:19:05 SYSTEM] watchdog for monitor is running.
remote: [28.09.2013 04:19:05 SYSTEM] monitor is running.
remote: CLIENT_MESSAGE: Starting Apache
remote: CLIENT_MESSAGE: Starting Zend Server JobQueue daemon
remote: Starting JobQueue [OK]
remote: [28.09.2013 04:19:07 SYSTEM] watchdog for jqd is running.
remote: [28.09.2013 04:19:07 SYSTEM] jqd is running.
remote: CLIENT_MESSAGE: Starting Zend Server Console
remote: spawn-fcgi: child spawned successfully: PID: 14797
remote: Starting Zend Server GUI [Lighttpd] [OK]
remote: [28.09.2013 04:19:10 SYSTEM] watchdog for lighttpd is running.
remote: [28.09.2013 04:19:10 SYSTEM] lighttpd is running.
remote: CLIENT_RESULT: Zend Server 5.6 started successfully
To ssh://524687d14382ecf8b7000135@zend-yehlu.rhcloud.com/~/git/zend.git/
dc474ef..9356c97 master -> master
Yehlu@YEHLU-VAIO /c/Z/OPENSHIFT/zend/php (master)
OpenShift Alias
https://www.openshift.com/blogs/custom- ... nshift-way
在 dns 用 cname 指過去即可
在 dns 用 cname 指過去即可
代碼: 選擇全部
yehlu CNAME blog-yehlu.rhcloud.com.
OpenShift WordPress git 問題
http://wp-awesome.rhcloud.com/2012/01/0 ... %E8%AE%B0/
http://log.amitshah.net/2011/12/blog-mo ... openshift/
https://www.marguerite.su/2013/02/18/op ... -tutorial/
http://log.amitshah.net/2011/12/blog-mo ... openshift/
https://www.marguerite.su/2013/02/18/op ... -tutorial/
代碼: 選擇全部
[blog-yehlu.rhcloud.com action_hooks]\> pwd
/var/lib/openshift/5248ef90500446874a00002a/app-root/runtime/repo/.openshift/act
ion_hooks
代碼: 選擇全部
cd $app_dir
cat >> .openshift/action_hooks/build
if [ ! -d $OPENSHIFT_DATA_DIR/uploads ]; then
mkdir $OPENSHIFT_DATA_DIR/uploads
fi
ln -sf $OPENSHIFT_DATA_DIR/uploads $OPENSHIFT_REPO_DIR/php/wp-content/
代碼: 選擇全部
rhc snapshot-save {appName}