laravel - How to get started in automated deployment -


i have app (built laravel) deployed , working well, have question, when deploy server made these process :

1- minify css , js files , comine them in single file

2- changing configuration (database,hostname,mail sever ,etc ...)

3- upload files server.

how can return local config , unminify js , css files without doing manually ?

is there better way make automated ? know first step can done gulp or javascript task runner single command , second 1 not big deal ,but want know if there automated way?

why don't have .env config file out of version control , compress css/js using laravel mix part of deploy process?

to make clear:

  1. keep .env file in .gitignore. have setup environment settings once (database, hostname, etc).

  2. use npm run prod minify css/js: https://laravel.com/docs/5.4/mix


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

Ansible warning on jinja2 braces on when -

html - How to custom Bootstrap grid height? -