Giter VIP home page Giter VIP logo

laravel-horizon-local's Introduction

Laravel Horizon Local

Run Laravel Horizon locally to monitor your queued jobs on the server using SSH port forwarding.

I've found it useful in cases where I don't want to publish assets and create web routes for an API-only application.

Prerequisite

If you don't use an SSH configuration files, google "SSH config file". For example, your ~/.ssh/config may have the following entry:

Host staging-2
    Hostname 10.10.10.10
    User ec2-user
    PreferredAuthentications publickey
    IdentityFile "/Users/johndoe/.ssh/id_rsa"

Usage

  1. Clone this repository.
git clone [email protected]:koomai/laravel-horizon-local.git
  1. Install dependencies and publish Horizon assets.
composer install
php artisan horizon:install
  1. Add local and remote ports to your Redis instance in your .env file (if different from the defaults below):
REDIS_HOST=127.0.0.1
REDIS_PORT=6380

REMOTE_REDIS_HOST=127.0.0.1
REMOTE_REDIS_PORT=6379
  1. Run the artisan command below to start the SSH tunnel to your remote server as defined in your configuration file, e.g. staging-2
php artisan ssh:tunnel staging-2
  1. Run php artisan serve (or see Laravel Valet if you're using MacOS).

  2. Go to <your url>/horizon on your browser to view your remote queued jobs.

laravel-horizon-local's People

Contributors

dependabot[bot] avatar koomai avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

laravel-horizon-local's Issues

tinker

@phptinker

$collect = collect(['a' => 'apple', 'b' => 'ball', 'c' => 'cat', 'd' => 'dingo']);

$collect->get('a');

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.