Last active
December 16, 2019 10:15
-
-
Save morozander/495b0da6bb31704e639c580c70b1b9e7 to your computer and use it in GitHub Desktop.
how to init project on local server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Добавить каталог в html | |
2. Прописать ip в etc/hosts | |
3. Добавить conf файл в etc/apache2/sites-available (sudo cp /etc/apache2/sites-available/energy.full.conf /etc/apache2/sites-available/technostock.loc.conf) | |
4. Добавить conf файл в etc/apache2/sites-enabled (sudo a2ensite caps.full.conf) | |
5. Перезапустить апач (sudo service apache2 restart) | |
6. Настроить .env, .htaccess | |
7. Создать БД http://localhost/phpmyadmin/ | |
8. Уточнить права доступа в определенной директории (sudo chmod -R 777 *) | |
9. Установить пакеты (composer install) | |
10. Сгенерировать ключ для приложения (php artisan key:generate) | |
11. Установить миграции (php artisan migrate) | |
12. Опцианально php artisan db:seed запускается один раз (при необходимости php artisan migrate:refresh - обнуляет таблицы) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://www.digitalocean.com/community/tutorials/apache-ubuntu-16-04-ru
https://habr.com/ru/post/220181/