Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Updating MDBoostrap Pro with npm

fredemagi pro asked 5 years ago


When I push my laravel app to github and want to deploy, I use a script for this. The script includes npm install and npm run prod. Is there anyway that I can update MDBoostrap pro when deploying?


Bartłomiej Malanowski staff commented 5 years ago

Could you please show us your script for deploying? We'll see what can we improve!


fredemagi pro commented 5 years ago

Here:

cd /home/forge/DOMAIN

php artisan down

git pull origin master

composer install --no-interaction --prefer-dist --optimize-autoloader --no-devecho "" | sudo -S service php7.3-fpm reload

if [ -f artisan ]then php artisan migrate --forcefi

php artisan cache:clear

php artisan auth:clear-resets

php artisan config:clearphp artisan config:cache

npm install

npm run production

php artisan up

I use Laravel forge and Digital Ocean.


Bartłomiej Malanowski staff commented 5 years ago

Why can't you just manually update the version of MDB Pro in your package.json? I think it's safe to have the same version on local and production environment


fredemagi pro commented 5 years ago

I ended up doing that :).



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.7.5
  • Device: Computer
  • Browser: Google Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No
Tags