PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, January 30, 2022

[FIXED] Installing laravel on existing project

 January 30, 2022     bitbucket, composer-php, git, laravel, php     No comments   

Issue

I'm developing a laravel application and my computer die. Now I want to get my project from the repository (Bitbucket + Git) but thanks to the git ignore file, the vendor folder is missing. I can't do a composer install on my project because is not allowed (the directory should be empty). The structure of my project is the same as the laravel installation except that I renamed the public folder.

I found this thread but did not solve my problem.

Integrating existing project by laravel framework?

I wanna know the best practice or way to do this and i don't think that copy and paste the folder of my project to a fresh install of larevel should be the way.

Thanks.


Solution

Go to your www folder

cd /var/www

Git clone your application (not that here the directory must not exist):

git clone https://github.com/antonioribeiro/application

CD into the folder

cd application

Execute composer update (if you are in a development environment)

composer update

Or execute composer install (if you are in a production environment)

composer install

Note that for composer install or composer update, the folder may actually have files and even a vendor folder created, there is not such obstacle.



Answered By - Antonio Carlos Ribeiro
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing