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:
keep
.env
file in.gitignore
. have setup environment settings once (database, hostname, etc).use
npm run prod
minify css/js: https://laravel.com/docs/5.4/mix
Comments
Post a Comment