Giter VIP home page Giter VIP logo

Comments (20)

varunsridharan avatar varunsridharan commented on May 25, 2024 2

@webysther here is the steps to setup a new mirror

Below Steps only for Server Running in Digitalocean (LEMP Stack)

  1. Create A Nginix Server
  2. run apt-get update
  3. run apt-get install unzip
  4. run apt-get install php-mbstring
  5. run apt-get install php-simplexml
  6. run apt-get install composer
  7. cd /var/www/
  8. run git clone https://github.com/Webysther/packagist-mirror.git
  9. cd packagist-mirror
  10. composer install --no-dev
  11. cp .env.example .env
    And the configure your .env file

i will keep updating here.

from packagist-mirror.

webysther avatar webysther commented on May 25, 2024 1

ok, this weekend I create a tutorial to build a vanila and docker scenario, step-by-step. I send you a message when I finish.

from packagist-mirror.

varunsridharan avatar varunsridharan commented on May 25, 2024 1

@webysther Using Nginix worked.

from packagist-mirror.

varunsridharan avatar varunsridharan commented on May 25, 2024 1

@webysther never mind i launched it. here is the new mirror site https://packagist.in/

from packagist-mirror.

webysther avatar webysther commented on May 25, 2024

There a possible problem on your server configuration, creating a mirror few minutes ago:

Captura de tela de 2019-05-10 06-51-53

But there some solutions:

  1. Use docker with my mirror on DATA_MIRROR here:
-e DATA_MIRROR=https://packagist.jp,https://packagist.phpindonesia.id,https://packagist.kr,https://packagist.com.br
  1. Change the max connections per mirror:
-e MAX_CONNECTIONS 25

from packagist-mirror.

varunsridharan avatar varunsridharan commented on May 25, 2024

@webysther i even tried with docker. its not working. also i am new to docker. so i am happy to use this method.

from packagist-mirror.

varunsridharan avatar varunsridharan commented on May 25, 2024

@webysther i run on Digitalocean 5$ Plan which provides 1VCPU & 1GB RAM with 25GB HDD

from packagist-mirror.

webysther avatar webysther commented on May 25, 2024

ok, on digitalocean with this configuration works well, follow this steps:

* * * * * root docker run --name mirror --rm -v /var/www/html:/public -e MAINTAINER_REPO='mymirror.com' webysther/packagist-mirror

The vm is new or have another services inside?

from packagist-mirror.

varunsridharan avatar varunsridharan commented on May 25, 2024

@webysther Well its a new server.

from packagist-mirror.

varunsridharan avatar varunsridharan commented on May 25, 2024

@webysther sorry i am not that good @ docker. please help me on this.

from packagist-mirror.

webysther avatar webysther commented on May 25, 2024

#10

from packagist-mirror.

varunsridharan avatar varunsridharan commented on May 25, 2024

Awesome Thanks :-) but the in mean time can u give me some ideas on where could be the issue ?

from packagist-mirror.

webysther avatar webysther commented on May 25, 2024

This is a issue, but not a bug, lack of documentation to help you. There some requirements to do on vm, maybe look at #4

from packagist-mirror.

varunsridharan avatar varunsridharan commented on May 25, 2024

@webysther i already did but can't find anything.! :-(

from packagist-mirror.

varunsridharan avatar varunsridharan commented on May 25, 2024

and by the way i am using Apache not Nginx

from packagist-mirror.

webysther avatar webysther commented on May 25, 2024

There no apache support, apache needs invert gz/raw files delivery, only nginx support this feature.

from packagist-mirror.

varunsridharan avatar varunsridharan commented on May 25, 2024

oops.

from packagist-mirror.

varunsridharan avatar varunsridharan commented on May 25, 2024

from morning i was trying to get this done !! using apache. !!

from packagist-mirror.

varunsridharan avatar varunsridharan commented on May 25, 2024

@webysther how to setup a cron ?

from packagist-mirror.

webysther avatar webysther commented on May 25, 2024
* * * * * root docker run --name mirror --rm -v /var/www/html:/public -e MAINTAINER_REPO='mymirror.com' webysther/packagist-mirror

Here

from packagist-mirror.

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.