简体   繁体   中英

Using Google Cloud Platform with a Compute Engine VM running a Ruby on Rails stack, how do I access the linked repository files?

I'm using Google Cloud Platform with a Compute Engine VM running a Ruby on Rails stack.

I've connected a BitBucket repo to the VM. Unfortunately, I do not see the files showing up anywhere on the VM when I SSH into it.

How do I access the linked repository files?

If I cannot access the files directly on the VM, then where can I find documentation that will tell me the correct way to access the Rails application from the VM?

connecting bitbucket or github in google cloud project doesn't do anything in VM instance.

If you want to access your repo inside your VM, you need to clone it. Follow this steps

  1. ssh to your VM
  2. type ssh-keygen and follow instruction
  3. Copy ~/.ssh/id_rsa.pub content
  4. Now go to bitbucket. And add ssh key. In bitbucket, first go to Manage Account -> SSH Keys -> add new file and put the ~/.ssh/id_rsa.pub content there.
  5. now, clone the repo. cd it .

that's all.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM