使用Cloud Foundry从Ibm bluemix下载代码? [英] Downloading code from Ibm bluemix using cloud foundry?

查看:81
本文介绍了使用Cloud Foundry从Ibm bluemix下载代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我的计算机刚刚坏掉,我所有的文件都丢失了,现在我正在使用IBM Bluemix创建一个Node js应用程序,因此我的所有文件都在IBM Bluemix空间中,但是我似乎无法下载我的文件在那里。它可以让您下载入门代码,但不能让您使用Cloud Foundry下载任何最新推送。

Hi guys my computer just died and I have lost all my files, Now I was using IBM Bluemix to make a node js application so all my files are on the IBM Bluemix space but I somehow can't seem to download my files that are there. It lets you download starter code but it doesn't let you download any recent pushes using cloud foundry. I'm really stuck at this any help will be useful.

推荐答案

我刚刚学会了这种Cloud Foundry访问应用程序的方法(每个应用程序都是Linux VM中的用户)。您需要安装Cloud Foundry CLI- https://docs.cloudfoundry。 org / cf-cli / install-go-cli.html 并为您的平台使用安装程序。

I just learned this Cloud Foundry way to access the app (each app is a User in the Linux VM) in details. You need to install Cloud Foundry CLI - https://docs.cloudfoundry.org/cf-cli/install-go-cli.html and use an installer for your platform.


  1. 安装 cf cli 后,一种方法是首先登录
    api端点(命令提示符前的路径>就是我到本地服务器/ pc的路径
    )通常位于下载的/本地应用程序
    代码所在的位置:

  1. After installed cf cli, then one way is first to log into your api end point (the path before the command prompt > are just my path to a local server/pc) typically where the downloaded / local app codes are located:

L:\IBM Cloud\PythonFlaskLab>cf login

Email> rpoon@abrs.net

Password> xxxxxxxxx
Authenticating...
OK 

L:\IBM Cloud\PythonFlaskLab>cf api https://api.ng.bluemix.net
Setting api endpoint to https://api.ng.bluemix.net...
OK 


  • 下一步:

    cf ssh 以及您通常的用户名和密码。 (cf是可以下载并安装的Cloud Foundry CLI)

  • Next:
    cf ssh with your usual username and pw. (cf is the Cloud Foundry CLI that you can download and install)

    登录后,它就像一个Linux VM,其应用程序的用户名为:

    after you login, it is like a Linux VM with your app as user name:

    示例如下所示:

     L:\IBM Cloud\PythonFlaskLab>cf ssh CommunityPythonFlaskTrialLR
    
     vcap@xxxxxxxxxxxxxxxxxx:~$ dir
    
     app  deps  logs  staging_info.yml  tmp
    
     vcap@xxxxxxxxxxxxxxxxxx:~$ cd app
    
     vcap@xxxxxxxxxxxxxxxxxx:~/app$ dir
    
     LICENSE  manifest.yml  NOTICE  Procfile  README.md  requirements.txt  static    welcome.py 


  • 您可以使用Linux scp发送到具有FQDN名称的任何PC或服务器。

    You can use Linux scp to send to whatever PC or server with a FQDN name.


    1. 您可以使用: cf个应用来查看所有应用

    L:\IBM Cloud\PythonFlaskLab>cf apps
    Getting apps in org rpoon@abrs.net / space dev as rpoon@abrs.net...
    OK
    
    name                              requested state   instances   memory   disk   urls
    abrsserver1                       started           1/1         32M      1G    abrsserver1.mybluemix.net
    Community Python Flask Trial LR   started           1/1         128M     1G     Community-Python-Flask-Trial-LR.mybluemix.net
    RPcourseraIOT                     started           1/1         256M     1G     RPcourseraIOT.mybluemix.net 


    更多手动过程(与尚未尝试使用的插件相比),但是它可以让您知道幕后情况,或者直接在云vm上编辑应用程序,或者解决问题并四处走动。了解Linux的细节确实对我打开引擎盖很有帮助。

    This would be a more manual process (compared with the plug in which yet to try out) but it let you know what is going on under the hood or edit your app directly on the cloud vm or for trouble shooting and move around. Getting to know the Linux details really is really helpful for me to open the hood cover if I want to.

    这篇关于使用Cloud Foundry从Ibm bluemix下载代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆