Giter Club home page Giter Club logo

Comments (5)

moay avatar moay commented on July 29, 2024 1

You'll have to either host some sort of private packagist (use https://packagist.com, the official open source https://github.com/composer/packagist/, https://github.com/lukaszlach/satis-server or any other available tool for that) or map your package directly to your repo (good explanation here: https://barryvanveen.nl/blog/55-installing-a-private-package-with-composer). Either way there seems not to be an issue with the flex server, I'll therefore close this.

from server-for-symfony-flex.

moay avatar moay commented on July 29, 2024

Hi there,

should actually work, works for bitbucket repos for me and also for selfhosted gitlab. So neither selfhosting nor bitbucket should be a problem.

What exactly doesn't work? Make sure to double check your repo url (see https://server-for-symfony-flex.readthedocs.io/en/latest/topics/configuration/#private-recipes-repo)

Github has proven to be quite good in resolving git requests, other providers or git servers may be pickier. If you run into problems, try to play with '.git', the protocol prefix or the type of url provided.

Also make sure that your repo is available for the server.

from server-for-symfony-flex.

keldrox avatar keldrox commented on July 29, 2024

I'm going to start with the easy with Github,

I have my recipes: https://github.com/keldrox/symfony-recipes

My server-for-symfony-flex server has configured in the .env file FLEX_RECIPE_REPO_PRIVATE = https: //github.com/keldrox/symfony-recipes

Performed the command "php bin / console recipes: reset"

All OK: https://ibb.co/KrMygyt

In my Symfony project I edit the composer.json file and add
"symfony": {
         "endpoint": "XXXX"
     },

I execute "composer require keldrox / demo-bundle" but it is not found

What can happen?

Thank you!

from server-for-symfony-flex.

moay avatar moay commented on July 29, 2024

I think there might be a slight misunderstanding in what Flex is supposed to do here. Symfony Flex does not serve your bundles to composer, it just enriches them by using recipes. That means: Your bundle needs to be published on packagist (or some private clone) in order to be able to install it using composer. Make sure to check this with a package that exists.

from server-for-symfony-flex.

keldrox avatar keldrox commented on July 29, 2024

Thanks again moay.

Exactly using the package with Packagist works. But my packages are in a private bitbucket server. In this case how could I proceed?
I think I'm missing the composer connection with my private packages on Bitbucket Server, but I don't know how to proceed

Thank you!

from server-for-symfony-flex.

Related Issues (20)

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.