Include Bookstore Manually Laravel 5

0

What do you guys, I need to add the FPDF library to a project I've done in Laravel 5, the project is in production on a server from which I only have access via FTP, in which way can I include this library manually, to my project ?, thank you very much

    
asked by Felipe Mendieta Perez 07.05.2017 в 07:15
source

1 answer

1

Having access only FTP complicates things a lot when it comes to including libraries, updating them, etc. I have a website with the same situation, but you connect many things (new libraries), although making changes is uncomfortable, it takes, with more work. If you need more libraries, update dependencies, etc. It is better to change the hosting because the work is going to be crazy and you can load everything with some ease. For FTP update you will have to use Git , for the process, even indirectly. If you have not handled it before, rest assured that it will only be basic commands.

Good to mess:

  • Make a copy of everything. Save 2 local copies. One security, to restore the system and the other you will update, installing the library, this will be the development copy.
  • You must have the development copy under version control. Make a commit of everything. So you'll see everything that changes when you install the library.
  • Installed the library and verified that it works on your development copy.
  • You have to upload the new / modified files. Do a diff , from the repository. You will have to upload the library, the dependencies, the provider configuration file, the files where the autoload maps the classes ... in short the diff , I will tell you, are a few.
  • Test in production.
  • Yes, you did not use Git before, the process is:

  • Install Git
  • Open the console and go to the directory with the development copy. Something like cd c: \ php \ laravel \ my_web
  • Start the local repository: git init
  • Add all files: git commit --all -m 'start repo'
  • After installation, tests, etc. See changes: git status (Everything in red must be uploaded: files and complete directories)
  • Upload everything by FTP
  • answered by 07.05.2017 в 10:35