简体   繁体   中英

Installing pre-built Laravel site onto local MAMP server

thanks for any help in advance. I am a beginner with Laravel and PHP so please forgive me if I am not even asking the right questions.

I have a pre-built (not by me) Laravel (4) site currently on a dev server that I'm hoping to pull down onto my local machine so that I can tinker around with some CSS for some fine-finishing on the styling.

I have consulted many tutorials for Laravel set-up/config but they all seem to concern fresh Laravel installs, not for previously-built sites.

From what I can tell, Composer is already living in the site directory. I'm not sure if Composer is anything I need to worry about at this point?

So far I have: downloaded site via FTP and installed latest version of MAMP. Preparing to dump the database from phpMyAdmin. I'm basically trying to go about this as if I was dealing with a WP build (which I've done before).

The typical process is thussly:

  • git clone (or ftp in your case) the code into your directory
  • modify (or make) the .env file. Ensure all your local variables are in here for things such as database connection, etc.
  • composer install
  • npm install 1
  • php artisan migrate
  • php artisan db:seed
  • gulp 2

Footnotes

  • 1 This may not be necessary if you don't use node for JavaScript package management in the project
  • 2 This may not be necessary if you don't compile assets such as sass or less or your javascript .

Most of the above is pretty standard, but you may not need to perform all the steps. Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM