Comments (20)
@webysther here is the steps to setup a new mirror
Below Steps only for Server Running in Digitalocean (LEMP Stack)
- Create A Nginix Server
- run apt-get update
- run apt-get install unzip
- run apt-get install php-mbstring
- run apt-get install php-simplexml
- run apt-get install composer
- cd /var/www/
- run git clone https://github.com/Webysther/packagist-mirror.git
- cd packagist-mirror
- composer install --no-dev
- cp .env.example .env
And the configure your .env file
i will keep updating here.
from packagist-mirror.
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.
@webysther Using Nginix worked.
from packagist-mirror.
@webysther never mind i launched it. here is the new mirror site https://packagist.in/
from packagist-mirror.
There a possible problem on your server configuration, creating a mirror few minutes ago:
But there some solutions:
- 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
- Change the max connections per mirror:
-e MAX_CONNECTIONS 25
from packagist-mirror.
@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.
@webysther i run on Digitalocean 5$ Plan which provides 1VCPU & 1GB RAM with 25GB HDD
from packagist-mirror.
ok, on digitalocean with this configuration works well, follow this steps:
- Create a machine on digital ocean, use this 1-click apps: https://marketplace.digitalocean.com/apps/docker
- create a cronjob: https://www.digitalocean.com/community/tutorials/how-to-use-cron-to-automate-tasks-on-a-vps
- put this schedule:
* * * * * 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.
@webysther Well its a new server.
from packagist-mirror.
@webysther sorry i am not that good @ docker. please help me on this.
from packagist-mirror.
from packagist-mirror.
Awesome Thanks :-) but the in mean time can u give me some ideas on where could be the issue ?
from packagist-mirror.
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.
@webysther i already did but can't find anything.! :-(
from packagist-mirror.
and by the way i am using Apache not Nginx
from packagist-mirror.
There no apache support, apache needs invert gz/raw files delivery, only nginx support this feature.
from packagist-mirror.
oops.
from packagist-mirror.
from morning i was trying to get this done !! using apache. !!
from packagist-mirror.
@webysther how to setup a cron ?
from packagist-mirror.
- create a cronjob: https://www.digitalocean.com/community/tutorials/how-to-use-cron-to-automate-tasks-on-a-vps
- put this schedule:
* * * * * 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)
- Services lose get parameters after mirroring HOT 1
- Add FOSSA
- Update mirroring code to our official mirror code HOT 10
- support composer v2? HOT 1
- packagist.hostuj.to down HOT 1
- "do not match its signature" HOT 13
- Will it mirror zip files of packages? HOT 1
- PHP warnings during initial mirror creation HOT 2
- Add i8n
- Error - Impossible to create the root directory HOT 4
- Add support to Google Analytics HOT 1
- in progress HOT 1
- Sync Packes More Frequent. HOT 3
- Build a miror behind a proxy HOT 4
- Warning: failed to open stream: Too many open file HOT 2
- composer install error HOT 3
- How I can use an internal domain ? HOT 13
- Extra dependencies?
- Drop PHP 7.1 support for next release
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from packagist-mirror.