GithubHelp home page GithubHelp logo

Comments (4)

salahhusa9 avatar salahhusa9 commented on July 1, 2024

For composer install it's unrecommended to do inside/by package because in case of laravel-updater need also update well be a problem, i recommend running composer install after php artisan updater:update

from laravel-updater.

salahhusa9 avatar salahhusa9 commented on July 1, 2024

For question tow:

  • roll back: (not supported now) this will be probably a problem if you run migration or seeding, its depend on use case
  • update to specific version not latest: (not supported now) this good idea

In general, i will add it

from laravel-updater.

itsmenewbie03 avatar itsmenewbie03 commented on July 1, 2024

For composer install it's unrecommended to do inside/by package because in case of laravel-updater need also update well be a problem, i recommend running composer install after php artisan updater:update

so this means that running composer install inside

    'after_update_pipelines' => [
        // you can add your own pipelines here
    ],

is a bad idea?

from laravel-updater.

salahhusa9 avatar salahhusa9 commented on July 1, 2024

yes, it's bad idea
you can use this in github action for update automaticity by release

name: deploy to server by ssh

concurrency:
  group: production
  cancel-in-progress: true

on:
  release:
    types: [released]

# on: [push]

jobs:
  deployment:
    runs-on: ubuntu-latest
    environment: production

    steps:
      - name: executing remote ssh commands using password
        uses: appleboy/[email protected]
        env:
          COMPOSER_ALLOW_SUPERUSER: 1
        with:
          host: ${{ secrets.REMOTE_HOST }}
          username: ${{ secrets.REMOTE_USER }}
          password: ${{ secrets.REMOTE_PASSWORD }}
          port: ${{ secrets.REMOTE_PORT }}
          script: |
            cd ${{ secrets.REMOTE_TARGET }}
            php artisan updater:update
            export COMPOSER_ALLOW_SUPERUSER=1; composer install

as you see i run composer install after update.

from laravel-updater.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.