Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

running queue:listen with iron throws exception #64

Open
ghost opened this issue Aug 10, 2015 · 6 comments
Open

running queue:listen with iron throws exception #64

ghost opened this issue Aug 10, 2015 · 6 comments

Comments

@ghost
Copy link

ghost commented Aug 10, 2015

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.

@thousandsofthem
Copy link
Contributor

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.*" ?

@ghost
Copy link
Author

ghost commented Aug 10, 2015

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

things looked fine.

@ghost
Copy link
Author

ghost commented Aug 10, 2015

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?

@thousandsofthem
Copy link
Contributor

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

@ghost
Copy link
Author

ghost commented Aug 11, 2015

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?

@thousandsofthem
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant