We are launching our application but seems like in Laravel 5, everything is cached or compiled. We upload PHP files but it doesn't reflect in the system like service files or repositories. What things to take care after deploying to Production environment?
I am pissed off after seeing that things are not working after I have uploaded the new file. I have cleared cache files and then ran clear:compiled. I did everything. Any help is appreciated.
.env file is for development, you have to set those vars on the server somewhere. Platforms like Heroku, Digital Ocean or Fortrabbit have a config vars / environment vars page for the app.
@Ruffles I am already doing that with .env. I want to know what things should I have to take care after deployment like putting the server down, uploading the files, clearing cache, etc
Well you haven't really said how you deploy your app but "upload files" tells me it's FTP or similar...
You need to do that (a lot of us use git to pull the files in, it's lovely). You then run composer install and do your migrations. If you have issues after that, please check any logs to see what went wrong...
@dixitchopra Basically all my projects are in a git repo and I push it to my git server (or GitHub/similar) and then you can pull that repo in from your server or web hosting (if they allow git and composer).