Sunday, January 5, 2014

develop log–simple git log 简单使用日志

1.init environment

-- 初始化

1.1 init

-- 初始化

git init



1.2 clone


-- 克隆

git clone ssh://pkrss@pkrss.my.phpcloud.com/gitprojects/container-root.git

2.add git server


2.1add remote depositary


-- 添加远程仓库

git remote add phpcloud ssh://pkrss@pkrss.my.phpcloud.com/gitprojects/container-root.git
git remote add cdsn git@code.csdn.net:pkexa/pkexa.git



2.2 show remote depositary list


-- 查看已添加的远程列表

git remote





2.get code


2.1 pull code


-- 拉代码

git pull phpcloud master



this will get ssh://pkrss@pkrss.my.phpcloud.com/gitprojects/container-root.git depositary master branch.and local depositary name is origin.


-- 它拉取ssh://pkrss@pkrss.my.phpcloud.com/gitprojects/container-root.git 仓库 master 分支.本地仓库名为origin.


2.2 commit to git local cache


-- 将修改的代码提交到本地缓存


git commit –am "change some code log"


2.3 push local cache to server


-- 将本地的缓冲提交到服务器

git push phpcloud master:master

-- or 或者

git push phpcloud master

-- or 或者

git push phpcloud

3.branch -- 分支


3.1 local branch -- 本地


3.1.1 create branch -- 创建分支


create branch 'branch1' --创建分支 'branch1'

git branch branch1



3.1.2 switch branch --切换分支

git checkout branch1



3.1.3 branch list - 分支列表

git branch



3.1.4 branch delete - 删除分支

git branch -d branch1



3.2 remote branch -- 远程分支


3.2.1 create remote branch -- 创建远程分支


this in push,from local master branch to remote phpcloud depositary


-– 在push时操作,将本地的master分支提交到phpcloud仓库的branch1分支上

git push phpcloud master:branch1



3.2.2 branch remote  list - 远程分支列表

git branch –a

3.2.3 branch remote delete - 删除远程分支

git push phpcloud --delete branch1








 


 


free web host cloud introduct – 2 phpcloud

2.phpcloud

2.1 introduct

url: http://www.phpcloud.com/

by zend

2.2 screenshot

2.2.1 default page:

image

2.2.2 login here:

image

2.2.3 login default console page:

image

2.2.3.1 console –> access key:

image

2.2.3.2 console –> My Containers:

image

2.2.3.2.1 console –> My Containers –> Create Container:

image

2.2.4 console –> your app(pkrss):

image

2.2.4.1 PHP Cloud –> Management:

image

2.2.4.2 PHP Cloud –> Snapshots:

image

2.2.5 Overview

2.2.5.1 Overview –> Dashboard:

image

2.2.5.2 Overview –> Events:

image

 

2.2.5.3 Overview –> Code Tracing:

image

2.2.5.4 Overview –> Job Queue:

image

2.2.5.5 Overview –> Server Info:

image

2.2.5.6 Overview –> Logs:

image

2.2.6 Application

2.2.6.1 Application –> Apps:

image

2.2.6.2 Application –> Libraries:

image

2.2.6.3 Application –> Monitoring Rules:

image

2.2.6.4 Application –> Caching Rules:

image

2.2.6.5 Application –> Job Rules:

image

2.2.7 Configurations

2.2.7.1 Configurations –> Components:

image

2.2.7.2 Configurations –> PHP:

image

2.2.7.3 Configurations –> Studio Integration:

image

2.2.7.4 Configurations –> Monitor:

image

2.2.7.5 Configurations –> Session Clustering:

image

2.2.8 Administration

2.2.8.1 Administration –> Servers:

image

2.2.8.2 Administration –> Audit Trail:

image

2.2.8.3 Administration –> User:

image

2.2.8.4 Administration –> Web API:

image

2.2.8.4 Administration –>Settings:

image

2.2.8.4 Administration –> Import/Export:

image

3.develop log

3.1 error:

s\cache\index.php file not exist,and in Overview –> Logs –> error:

[Sun Jan 05 08:23:42 2014] [error] [client 172.17.255.254] File does not exist: /home/pkrss/.apps/http/__default__/0/1.0-zdc/public/home
fixed:s\cache\.htaccess
add:
RewriteBase /s/cache/



4.i said


phpcloud is good for me.


but .htaddcess header keyword i get error.


and i used git submit code to it,where the page is show old?


5.last


what i said,may be wrong,please try it yourself!


Thanks!

free web host cloud introduct

1.openshift


1.1 introduct

url: http://openshift.redhat.com

by redhat

1.2 screenshot

1.2.1 default page:


image

1.2.2 my apps –> application:


image

myapps –>application –> php – c.pkrss.com:

image

myapps –>application –> php – c.pkrss.com –> change alias:

image

myapps –>application –> php – c.pkrss.com –> change alias –> add alias:

image

1.2.3 my apps –> setting:


image

1.2.4 my apps –> help:


image

1.2.5 my apps –> add application:

image

1.2.5.1 my apps –> add application –> java:

image

1.2.5.2 my apps –> add application –> php:

image

1.2.5.3 my apps –> add application –> ruby:

image

1.2.5.4 my apps –> add application –> python:

image

1.2.5.5 my apps –> add application –> node.js:

image

1.2.5.6 my apps –> add application –> perl:

image

2. my said


i used git commit code to it. openshift support 1 free web application.

i done:

1.web background setting,ex: setting ssh key...

2.import php code by git to server.

3.change my php pdo connection code

mysql pdo connect ion string.

local communtion used $_SERVER["OPENSHIFT_PHP_IP"] . ':' . $_SERVER['OPENSHIFT_PHP_PORT'] ,not used ‘127.0.0.1:80'.

your can used <?php phpinfo(); ?> to show your environment variable.

4.openshift is good now.

3.last


what i said,may be wrong,please try it yourself!