This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

Running a Project on Server with no internet connection

Discuss installing Symfony 2 here

Running a Project on Server with no internet connection

by ceng » Sun Aug 11, 2013 9:31 pm

I want to run my Symfony application on a system with no access to the open internet. I built and tested my project working on my development box then zipped up the contents and sent them over to the live server. When I try and run any part of the application however, it tells me I need to run composer first. Composer then fails saying it can't connect to the internet. I don;t understand what composer is trying to do since everything was copied over from development (where it all works) to the live server (where its asking to run composer). Can I run composer with some switch to prevent it from connecting to the internet or manually do what ever composer is trying to do?

e.g.

Code: Select all
~/my project $ bin/phpunit -c app/
You need to set up the project dependencies using the following commands:
curl -s http://getcomposer.org/installer | php
php composer.phar install
~/my project $ php composer.phar install
Loading composer repositories with package information

  [Composer\Downloader\TransportException]
  The "https://packagist.org/packages.json" file could not be downloaded: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolutio
  n
  failed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution
ceng
Junior Member
 
Posts: 1
Joined: Sun Aug 11, 2013 9:24 pm

Re: Running a Project on Server with no internet connection

by tiagojsag » Mon Aug 12, 2013 9:25 am

Hi,

Composer is a dependency manager, that installs symfony core and all the required bundles. It puts the content into the vendor folder. If you copy a working vendor folder from local to the server, you can probably skip the composer part on the server

cheers
Tiago Garcia
@tiagojsag

Core Web Developer @ Shopware
http://www.shopware.de
User avatar
tiagojsag
Faithful Member
 
Posts: 885
Joined: Wed Aug 10, 2011 4:58 pm