Giter Club home page Giter Club logo

Comments (7)

tlmoe avatar tlmoe commented on August 25, 2024

https://github.com/tlmoe/v2fly-cf/blob/master/.github/workflows/deploy-to-ibm.yml#L56

https://docs.run.pivotal.io/devguide/deploy-apps/manifest-attributes.html#routes

from v2fly-cf.

tvision08 avatar tvision08 commented on August 25, 2024

大佬能否给个示例?谢谢啦!

from v2fly-cf.

tlmoe avatar tlmoe commented on August 25, 2024

@tvision08

        cat > manifest-ibm.yml << EOF
        ---
        applications:
        - name: v2fly
          memory: 128M
          disk_quota: 128M
          routes:
          - route: v2fly.mybluemix.net
          command: ./v2ray
          buildpacks:
          - binary_buildpack
        EOF
    
    - uses: citizen-of-planet-earth/cf-cli-action@v1
      with:
        cf_api: https://api.us-south.cf.cloud.ibm.com
        cf_username: ${{ secrets.CF_USER_IBM }}
        cf_password: ${{ secrets.CF_PASSWORD_IBM }}
        cf_org: ${{ secrets.CF_ORG_IBM }}
        cf_space: ${{ secrets.CF_SPACE_IBM }}
        command: >
          push v2fly -f manifest-ibm.yml

from v2fly-cf.

tvision08 avatar tvision08 commented on August 25, 2024

谢谢啦!搞定了。

from v2fly-cf.

tvision08 avatar tvision08 commented on August 25, 2024

大佬问下,如果想一次性部署4个相同的APP例如:v2flya、v2flyb、v2flyc、v2flyd,配置文件要怎么写?谢谢!

from v2fly-cf.

tlmoe avatar tlmoe commented on August 25, 2024

大佬问下,如果想一次性部署4个相同的APP例如:v2flya、v2flyb、v2flyc、v2flyd,配置文件要怎么写?谢谢!

@tvision08 完全相同的可以用instance
https://docs.cloudfoundry.org/devguide/deploy-apps/manifest-attributes.html#instances

memory:  256M
instances: 4

不一样的可以参考
https://docs.cloudfoundry.org/devguide/deploy-apps/manifest.html#multi-apps

from v2fly-cf.

tvision08 avatar tvision08 commented on August 25, 2024

好的,谢谢啦!

from v2fly-cf.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.