-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Quick Installation is really slow #716
Comments
It is a lot quicker here:
but it will greatly depend on your internet connection, and the response of packagist and github. Also, composer slows down considerably when you have xdebug enabled. Without xdebug is goes down to But yeah, it's not a matter of seconds anymore now that we've switched to composer, and composer has to check all dependencies and clone the different repo's. If you have any idea how it can be improved? |
Yes, to check all dependencies and clone repos takes time. And the worse thing is GItHub API limit. Many users reach the limit, and if they are not familiar with Composer and/or GitHub, they might have a hard time. In my country, there are users who don't read English! Some users do not have GitHub account.
I think the quickest installation is downloading the official Zip file. |
Ok, I will have a look. That will mean that with every release, the install procedure has to be updated, unless we can find a clever way to find out what the latest version is. |
How about like this? $page_url = 'http://fuelphp.com/';
$link_regex = '/<a href="(.+?)" class="button large purple download-icon">/u';
$html = file_get_contents($page_url);
preg_match($link_regex, $html, $matches);
$zip_url = $matches[1]; |
The logic might work, but "oil create" is bash, not PHP. I have managed to handle it server side, probably easier and more reliable: http://fuelphp.com/downloads/download-link Next challenge is that you need to be able to unzip it locally. It's not said that that is possible, so we need a solution for that as well. |
Should The following script works on Mac. url=`curl http://fuelphp.com/downloads/download-link | sed -e 's/<[^>]*>//g'`
dir="tmp.$$"
rm -rf $dir
mkdir $dir
curl -o $dir/fuelphp.zip $url
cd $dir
unzip fuelphp.zip |
But in reality, now it takes long time. In my case, it took about 9 minutes. It is not quick at all.
The text was updated successfully, but these errors were encountered: