Skip to content

Instantly share code, notes, and snippets.

@leedavis81
Created October 24, 2015 12:50
Show Gist options
  • Save leedavis81/4f62067384b1bb906819 to your computer and use it in GitHub Desktop.
Save leedavis81/4f62067384b1bb906819 to your computer and use it in GitHub Desktop.
First thing it asks you to do to get started, is globally install their CLI tool. I don't want to, I like my stuff contained!
... trys to get the laravel installer contained within a directory ..
I give in and install it globally, then use the larval install method to create a project, then...
composer bombs out with a github throttling issues due to the vast amounts of dependencies that come down. So it needs a key, I give it one.
I paste in, but don't see the Token (Hidden) text and assume my paste didn't work. I copy again, paste, copy, paste realise what i've done, try and clear the hidden field. Then, meh, hit enter. Do the process again, succeeds. Until this handy error occurs....
> php artisan clear-compiled
Mcrypt PHP extension required.
Script php artisan clear-compiled handling the post-install-cmd event returned with an error
[RuntimeException]
Error Output:
This is likely because I'm generating my project to a directory that won't be part of the web server. I have hooks set up to deploy code changes on save to my vagrant machine (hosting environment). I now have a half baked install. Ergh. Let's clear it out and start again. This time just downloading the blinking thing..
Snagged the link from http://laravel.com/docs/4.2/installation and tried to curl it...
curl -O https://github.com/laravel/laravel/archive/v4.2.11.zip
Down it comes at 121 bytes. Extraction fails, nothing in there. Arrgghh. How much more before I'm an artisan!!??
Ok, I'm guessing this is probably redirected or something. Let's tell curl to follow that..
curl -OL https://github.com/laravel/laravel/archive/v4.2.11.zip
100 121 0 121 0 0 105 0 --:--:-- 0:00:01 --:--:-- 105
100 41792 100 41792 0 0 16752 0 0:00:02 0:00:02 --:--:-- 38271
bingo! we're in business.
I extract, run composer install then run into the same issue above (artisan clear-compiled). Ok, so maybe if I run this on my actual deployment area (vagrant machine) it'll have all those server dependencies and it won't shit the bed....
composer install....
Could not fetch ... to go over the API rate limit ... blah blah blah... enter your GitHub credentials your password will never be stored.
Username:
Are you fucking kidding me? To be sure they're not going to ping this somewhere I need to crawl the code, I'm not doing that.
... ponders for 15 minutes ....
Considers adding ssh auth keys to my hosting environment to get around this.
4 year old kid wants his breakfast. Let's get back to this later...
.....................................
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment