Results 1 to 10 of 13

Thread: Getting Source Code from Git for Local Dev

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2009
    Posts
    76,596

    Default

    First time i got error message while running the command:

    Code:
    cd ~/www/imagehostnow.com
    composer install
    The error message was like




    Then retried the command again this time it worked fine without doing anything.

    I got following result :


    Last edited by sherlyk; 01-09-2015 at 06:36 AM.

  2. #2
    Join Date
    Sep 2003
    Posts
    3,040

    Default

    Good. Always read error messages. It said

    Failed to download..
    That means composer can't download some files from github.com

    That means one or more of the following

    1. problem with your internet connection
    2. github down
    3. some thing wrong with connection from your pc and github, many thing can happen in between.

    Now, go to web site

    Code:
    http://imagehostnow.dev
    See if there any change in error you got before.
    Become PHP Expert in 30 days
    FreeMarriage.com - Free Online Matrimonial
    FlashWebHost.com - Professional Web Hosting, Designing.

  3. #3
    Join Date
    Nov 2009
    Posts
    76,596

    Default

    I got error page.


  4. #4
    Join Date
    Sep 2003
    Posts
    3,040

    Default

    Good. This is because we need to create some missing folders. I will give instructions for that shortly.
    Become PHP Expert in 30 days
    FreeMarriage.com - Free Online Matrimonial
    FlashWebHost.com - Professional Web Hosting, Designing.

  5. #5
    Join Date
    Sep 2003
    Posts
    3,040

    Default

    To fix the permission error, run

    Code:
    chmod -R 777 ~/www/imagehostnow.com/app/storage/
    What we doing here is give everyone write permission (the user that runs apache need to write to storage folder).
    Become PHP Expert in 30 days
    FreeMarriage.com - Free Online Matrimonial
    FlashWebHost.com - Professional Web Hosting, Designing.

  6. #6
    Join Date
    Sep 2003
    Posts
    3,040

    Default

    Next time, when you see this type of error, run that command. So make sure you read the error message, then only you know which command to fix that type of error.
    Become PHP Expert in 30 days
    FreeMarriage.com - Free Online Matrimonial
    FlashWebHost.com - Professional Web Hosting, Designing.

  7. #7
    Join Date
    Nov 2009
    Posts
    76,596

    Default

    Command run, i got result:


  8. #8
    Join Date
    Sep 2003
    Posts
    3,040

    Default

    This is not result of the command.

    After running the command, web site started working.

    Now, you have cloned code from git few days ago. There are many commits (code changes) made to git repo after that. To get latest version, you need to run "git pull". This need to be run always, so your code is always upto date with what is on git.

    Code:
    cd ~/www/imagehostnow.com
    git pull origin master
    Become PHP Expert in 30 days
    FreeMarriage.com - Free Online Matrimonial
    FlashWebHost.com - Professional Web Hosting, Designing.

  9. #9
    Join Date
    Nov 2009
    Posts
    76,596

    Default

    command run,


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •