duanniwu7730 2012-03-02 15:31
浏览 40

如何使用php雾将我的项目文件提升到我的github

I am trying to host my php application over phpfog cloud services, this is my first ever try with any GIT client; following the procedure as defined in PHPfog documentations, I am done with creating keys and adding it.

Now I want to know how I can add my project to the cloud, in simple words I have a folder which has all my project file .php, images etc. I want them up over my domain?

How to do that? Do I have to follow GIThub documentation or phpfogs?

Ive been trying for very long now and confused between all this, kindly help with it.

  • 写回答

1条回答 默认 最新

  • dongxiang3205 2012-03-03 10:09
    关注

    You don't need to use Github with PHPFog. PHPFog hosts git repos for you. In the code tab of your app's details, in the PHPFog web console, you will see how to clone down your app. The command will look something like:

    git clone git@git01.phpfog.com:myexample.phpfogapp.com
    

    Running that command will clone the app down into a folder named myexample.phpfogapp.com

    Next I would move all your project files from your current folder into this new folder. Once you made your file changes and are ready deploy, change directory to the new folder and run the following commands.

    git add .
    git add -u
    git commit -m "Initial commit"
    git push
    

    If you run into any "fast forward" errors pushing use the --force switch

    git push --force
    

    Another way to do this without the clone would be to initialize a git repo in your current folder and add the PHPFog repo as a remote:

    git init
    git remote add origin git@git01.phpfog.com:myexample.phpfogapp.com
    git add .
    git add -u
    git commit -m "Initial commit"
    git push --force
    

    Side note: you can use Github as an additional remote repo if you want to but its not necessary.

    评论

报告相同问题?

悬赏问题

  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测