Results 1 to 10 of 34

Thread: Pulling latest software changes from GIT

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2003
    Posts
    3,040

    Default

    Good.

    Now you see many files are pulled down to your computer.

    Some of the files are in folder

    Code:
    app/database/migrations
    That means, there is change in database structure. Some new tables created/deleted or even changed. Every time, database migration files changed, you need to run "php artisan migrate"

    Code:
    php artisan migrate
    Run it and post result.
    Become PHP Expert in 30 days
    FreeMarriage.com - Free Online Matrimonial
    FlashWebHost.com - Professional Web Hosting, Designing.

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

    Default

    Run the command.

    Code:
    php artisan migrate
    Find below the result.

    Code:
    sherly@HOME:~/www/imagehostnow.com$ php artisan migrate
    **************************************
    *     Application In Production!     *
    **************************************
    
    Do you really wish to run this command? yes
    
    
                                                                                   
      [PDOException]                                                               
      SQLSTATE[28000] [1045] Access denied for user 'imagehostnow'@'localhost' (u  
      sing password: YES)                                                          
                                                                                   
    
    
    migrate [--bench[="..."]] [--database[="..."]] [--force] [--path[="..."]] [--package[="..."]] [--pretend] [--seed]
    
    
    sherly@HOME:~/www/imagehostnow.com$

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

    Default

    That is some error.

    Can you read the error message and try to find out what it is saying ? What may be the reason for that error ?
    Become PHP Expert in 30 days
    FreeMarriage.com - Free Online Matrimonial
    FlashWebHost.com - Professional Web Hosting, Designing.

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

    Default

    Error: SQLSTATE[28000] [1045] Access denied for user 'imagehostnow'@'localhost' (using password: YES)
    Reason:I changed Revert changes on app/config/database.php file.

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

    Default

    Good.

    Now, repeat the steps we done. This need to be done everyday whenever new commit is made to master branch in gitlab, so your source code is always uptodate.

    Then verify last commit is same as in gitlab.
    Become PHP Expert in 30 days
    FreeMarriage.com - Free Online Matrimonial
    FlashWebHost.com - Professional Web Hosting, Designing.

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

    Default

    I changed database,username,password on database.php file
    Then my local site is http://imagehostnow.dev/ working fine.

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

    Default

    Quote Originally Posted by sherlyk View Post
    I changed database,username,password on database.php file
    Then my local site is http://imagehostnow.dev/ working fine.
    Look like you don't read/understand my previous reply.

    What i asked was to verify if your local copy is latest version (same as that in gitlab/server). Verify it and post result.
    Become PHP Expert in 30 days
    FreeMarriage.com - Free Online Matrimonial
    FlashWebHost.com - Professional Web Hosting, Designing.

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
  •