cloning laravel project from github

前端 未结 4 1139
别那么骄傲
别那么骄傲 2021-01-30 03:43

I\'m new to github and I found this site very useful for lot of us. I came up on storing my laravel project here in github, but theres a problem every time I will clone it to be

相关标签:
4条回答
  • 2021-01-30 03:53

    Yes you can, but that is not recommended at all.

    You can delete everything in .gitignore file and push them from a working project. Then it will work perfectly where you git clone them.

    But there are so many drawbacks in this way. I recommend you not to do that.

    0 讨论(0)
  • 2021-01-30 04:09

    Run the following commands:

    git clone --single-branch --branch [TAG_VERSION] https://github.com/laravel/laravel.git [CUSTOM_PROJECT_NAME]
    composer install
    
    0 讨论(0)
  • 2021-01-30 04:16

    1.Run `git clone 'link projer github'

    2.Run composer install

    3.Run cp .env.example .env or copy .env.example .env

    4.Run php artisan key:generate

    5.Run php artisan migrate

    6.Run php artisan serve

    7.Go to link localhost:8000

    0 讨论(0)
  • 2021-01-30 04:18
    • Clone your project
    • Go to the folder application using cd command on your cmd or terminal
    • Run composer install on your cmd or terminal
    • Copy .env.example file to .env on the root folder. You can type copy .env.example .env if using command prompt Windows or cp .env.example .env if using terminal, Ubuntu
    • Open your .env file and change the database name (DB_DATABASE) to whatever you have, username (DB_USERNAME) and password (DB_PASSWORD) field correspond to your configuration.
      By default, the username is root and you can leave the password field empty. (This is for Xampp)
      By default, the username is root and password is also root. (This is for Lamp)
    • Run php artisan key:generate
    • Run php artisan migrate
    • Run php artisan serve
    • Go to localhost:8000
    0 讨论(0)
提交回复
热议问题