Skip to content

Instantly share code, notes, and snippets.

@morozander
Last active December 16, 2019 10:15
Show Gist options
  • Save morozander/495b0da6bb31704e639c580c70b1b9e7 to your computer and use it in GitHub Desktop.
Save morozander/495b0da6bb31704e639c580c70b1b9e7 to your computer and use it in GitHub Desktop.
how to init project on local server
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 - обнуляет таблицы)
@morozander
Copy link
Author

php artisan db:seed --class=CitiesTableSeeder
*CitiesTableSeeder - указать соотвествующий класс

@morozander
Copy link
Author

morozander commented Jan 22, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment