Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

tzookb's avatar

servers deploy, composer, bower etc

We have several servers for our project and I got use to

composer install

now we started using bower, and as @JeffreyWay suggests we should .gitignore that as well. So now I need to

bower install 

on all my servers as well, that means that I need to install npm and bower for all the servers.

I that the right way to perform deploys?

git pull 
composer install
bower install
etc.....

or is there any other (better) way? (rsync maybe...)

0 likes
4 replies
tzookb's avatar

Yes of course it is minified, but for example we have bootstrap fonts and they must be in public production.

How do you handle it?

sitesense's avatar

You would handle that with Elixir (Gulp):

// In gulp it goes something like this
gulp.src(paths.bootstrap + '**/*.{ttf,woff,eof,svg}')
        .pipe(gulp.dest('./public'));

// Elixir - not sure but I think the syntax is
    mix
       .copy(src, dest)

I'm sure @JeffreyWay will guide us on this once L5 becomes stable.

Mushr00m's avatar

Is think you should only use it on your local version and then simply deploy/publish on the server. Or maybe I didn't understand something...

Please or to participate in this conversation.