D
D
dlux662013-11-06 19:59:35
PHP
dlux66, 2013-11-06 19:59:35

Updating composer on a server without Internet access

Hello! The server is temporarily offline, but the project is changing and needs composer updates. To do this, I tried to substitute composer cache from the development server, where there is Internet, but my server is without Internet. Composer started updating vendors, but at one point it started accessing github.com via https again . Can anyone share their experiences in this area?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Valery, 2013-11-06
@Akuma

Why not just take the vendor folder from any server with internet?
Those. composer install on a server with internet, and cp vendor newserver/vendor on your server.
Of course, this is a one-time solution in the forehead, but still the fastest.

S
Sergey, 2013-11-07
Protko @Fesor

Alternatively, you can set up a local version of the repositories for your dependencies. Normal git clone to some directory, and ask composer to update from there. You can also put some satis, etc. or you can just a folder with archives or git repositories.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question