iron_mq_php icon indicating copy to clipboard operation
iron_mq_php copied to clipboard

running queue:listen with iron throws exception

Open ghost opened this issue 9 years ago • 6 comments

here's a copy of my composer.json

{
    "name": "laravel/laravel",
    "description": "The Laravel Framework.",
    "keywords": ["framework", "laravel"],
    "license": "MIT",
    "type": "project",
    "require": {
        "laravel/framework": "5.0.*",
        "barryvdh/laravel-ide-helper": "~2.0",
        "videlalvaro/php-amqplib": "2.2.*",
        "fzaninotto/faker": "~1.4",
        "nategood/httpful": "^0.2.19",
        "jms/serializer": "^0.16.0",
        "borisguery/json-builder": "^0.2.0",
        "iron-io/iron_mq": "4.0.*"
    },
    "require-dev": {
        "phpunit/phpunit": "~4.0",
        "phpspec/phpspec": "~2.1"
    },
    "autoload": {
        "classmap": [
            "database"
        ],
        "psr-4": {
            "App\\": "app/"
        }
    },
    "autoload-dev": {
        "classmap": [
            "tests/TestCase.php"
        ]
    },
    "scripts": {
        "post-install-cmd": [
            "php artisan clear-compiled",
            "php artisan optimize"
        ],
        "post-update-cmd": [
            "php artisan clear-compiled",
            "php artisan optimize"
        ],
        "post-create-project-cmd": [
            "php -r \"copy('.env.example', '.env');\"",
            "php artisan key:generate"
        ]
    },
    "config": {
        "preferred-install": "dist"
    }
}

exception thrown.

...
  [Symfony\Component\Debug\Exception\FatalErrorException]
  Class 'IronMQ' not found

I've tried installing iron_mq version 2.0 and 4.0.*, same exception, and even wiping out my vendor directory and composer installing from fresh start.

ghost avatar Aug 10 '15 18:08 ghost

as far as i know laravel 5.0 requires different (than 5.1) MQ version as described: https://github.com/iron-io/iron_mq_php#branches Could you try "1.*" ?

thousandsofthem avatar Aug 10 '15 19:08 thousandsofthem

I did as you suggested, ran the queue:listen, queue:work

things looked fine.

ghost avatar Aug 10 '15 20:08 ghost

Any suggested ways to test iron.io on local box? with the push queues, the subscribe url needs to be public, is there a proxy solution of sorts recommended?

ghost avatar Aug 10 '15 22:08 ghost

@BardiaAfshin you could try to use service like http://localtunnel.me/

thousandsofthem avatar Aug 11 '15 13:08 thousandsofthem

I did the installation, kicked off my local server on that port, and when I use the web browser, it times out.

Any other suggestions?

ghost avatar Aug 11 '15 22:08 ghost

There are many services like that and exactly for the same purpose, just google for them. You could share specific port with the world. Launch the app on that port (your intended push queue target url), point test push queue to that generated url

thousandsofthem avatar Aug 11 '15 23:08 thousandsofthem