How can we deploy bagisto application?
-
I want to deploy the application, and in
.env
file i've made likeAPP_DEBUG=false
This will make laravel application in production mode where as for
Vue
i've madeVue.config.devtools = false; Vue.config.debug = false; Vue.config.silent = true;
But in console tab, it shows your application is in development mode for vue components.
-
Hi @gwachhamit,
- Make sure
APP_ENV
inproduction
. - Always use
npm run prod
when you are compiling assets. - Lastly for double check you already told about that.
- Make sure
-
Yeah, I've done so.
But still, it says 'You are running Vue in development mode.
' for vue part -
Did you publish your package?
-
How to do that? npm run build doesnot work with bagisto application.
-
did you got any solution
please help me you got any solution -
I didn't ask about the main. I am just asking did you run the command,
php artisan vendor:publish --all
If you have not customized anything then you can run this also,
php artisan vendor:publish --all --force
(Please make sure, if you have not customized then run otherwise place your updated changes manunally.)And one more thing I have checked your issue in a production environment, I am not getting the dev mode message in console.
-
Of course, I've done many customization as per the requirement of my application. I've changed many files after publishing with vendor:publish cmd.
-
Just make sure you put your compiled production file manually.
-
Sorry I don't get it. What type of compiled production? Would you please mention some important files to check for production?
-
On which theme are you working?
-
the default one : Velocity
-
These are the files,
https://github.com/bagisto/bagisto/tree/master/packages/Webkul/Velocity/publishable/assets/cssMake sure you run
npm run prod
in velocity pacakge first and then place these publishables manually in public,
https://github.com/bagisto/bagisto/tree/master/packages/Webkul/Velocity/publishable/assets/css -
Thank you that helped.