Build locally for production and remotely for staging #2398
Replies: 2 comments
-
At https://github.com/lorisleiva/laravel-deployer/blob/main/docs/how-to-npm.md which is a Laravel wrapper for PHP Deployer, they mention:
looking into this.. but not sure if this is wrapper native or Deployer native.. #2322 also mentioned Deployer 7 and |
Beta Was this translation helpful? Give feedback.
-
At #1719 I see
Assume that works. Just need a conditonal to only run this for host staging Migration to Deployer 7at Deployer Github repository there is a description on the migration from PHP Deployer 6 to 7 and changes needed I see now by the way. Not sure if Not quite sure why we would upgrade to Deployer 7 for our Laravel 8 app. Would require some changes and only willing to go for that if Deployer 7 is really a solid improvement. Will need to read more on that. For now |
Beta Was this translation helpful? Give feedback.
-
We currently have the setup that we build locally and push to staging and production. I now want to use staging branch for staging and master for production. I would prefer only to push built files to production and not to staging.
So, it is possible to change my config to use
npm run prod
on staging and not on master or production?Beta Was this translation helpful? Give feedback.
All reactions