good20087758521 / snova

Automatically exported from code.google.com/p/snova
0 stars 0 forks source link

Openshift创建应用后的问题 #405

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
使用如下命令创建应用:
rhc app create -a snova -t nodejs-0.6
现在发现git文件夹下有个snova.git文件夹,可是没看到deployment�
��录,这个是要手工创建的吗?
服务端程序解压后的nodejs目录要上传到哪个目录中,才能使��
�后续3个git命令继续执行呢?

Original issue reported on code.google.com by mj198...@gmail.com on 22 Mar 2013 at 7:36

GoogleCodeExporter commented 8 years ago
把c4的js文件所在目录的所有文件拷贝到创建app后生成的目录�
��

Original comment by yinqiwen@gmail.com on 23 Mar 2013 at 9:47

GoogleCodeExporter commented 8 years ago
不好意思,我还是不太理解,用上述命令创建后,会生成ID文
件夹,其主要目录结构如图所示。
我把nodejs下的所有文件复制到test.git和repo文件夹下(ID文件夹
无写入权限,也无法更改权限),运行“git add 
.”出现如下信息:
C:\Documents and Settings\User>git add .
warning: LF will be replaced by CRLF in .bash_history.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in .gitconfig.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in .ssh/known_hosts.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Cookies/user@atdmt[1].txt.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Cookies/user@baidu[1].txt.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Cookies/user@c1.atdmt[1].txt.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Cookies/user@c1.microsoft[1].txt.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Cookies/user@cnzz.mmstat[1].txt.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Cookies/user@cnzz[1].txt.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Cookies/user@cpro.baidu[2].txt.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Cookies/user@doubleclick[2].txt.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Cookies/user@google[2].txt.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Cookies/user@js.adm.cnzz[1].txt.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Cookies/user@m.webtrends[1].txt.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Cookies/user@microsoft[2].txt.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Cookies/user@mmstat[1].txt.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Cookies/user@mobile.twitter[2].txt.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Cookies/user@twitter[2].txt.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Cookies/user@www.microsoft[1].txt.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Cookies/user@www.www.ip.cn[1].txt.
The file will have its original line endings in your working directory.
error: open("Local Settings/Application Data/Microsoft/Windows/UsrClass.dat"): P
ermission denied
error: unable to index file Local Settings/Application Data/Microsoft/Windows/Us
rClass.dat
fatal: adding files failed

Original comment by mj198...@gmail.com on 23 Mar 2013 at 4:32

Attachments:

GoogleCodeExporter commented 8 years ago
上面“repo文件夹下”截图已是覆盖后的结果。

Original comment by mj198...@gmail.com on 23 Mar 2013 at 4:33

GoogleCodeExporter commented 8 years ago
问题总算解决了,问题出在wiki上的教程以及服务端文件。创�
��完应用后依次执行:
①git clone 
ssh://随机字串@应用名-命名空间.rhcloud.com/~/git/应用名.git/
 这步wiki教程未注明
②cd 应用名
③将snova-c4-nodejs-server-[version].zip中文件解压到“应用名”文��
�夹
④git add .
 出现“LF will be replaced by 
CRLF”这类的错误时,重新保存错误文件。
⑤git commit -m 'deploy'
 这步wiki教程写错符号
⑥git push
虽然上述操作成功,不过由于rhcloud.com被封,还是没法用来穿
透。

Original comment by mj198...@gmail.com on 30 Mar 2013 at 5:29