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

Erro with command vapor in laradock workspace #2291

Closed
jzonta opened this issue Sep 20, 2019 · 5 comments
Closed

Erro with command vapor in laradock workspace #2291

jzonta opened this issue Sep 20, 2019 · 5 comments

Comments

@jzonta
Copy link
Contributor

jzonta commented Sep 20, 2019

Info:

  • Docker version 18.09.9 build 039a7df9ba
  • Laradock commit fa1f33b:
  • System info PC:
  • System info Windows 7:

Issue:

I try use new Laravel Vapor (https://vapor.laravel.com) in laradock and when i run any command vapor, return this:

laradock@e8e682579899:/var/www/testevapor$ php vendor/bin/vapor help deploy

dir=$(cd "${0%[/\\]*}" > /dev/null; cd '../laravel/vapor-cli' && pwd)

if [ -d /proc/cygdrive ]; then
    case $(which php) in
        $(readlink -n /proc/cygdrive)/*)
            # We are in Cygwin using Windows php, so the path must be translated
            dir=$(cygpath -m "$dir");
            ;;
    esac
fi

"${dir}/vapor" "$@"

Any ideia?

@cwilby
Copy link

cwilby commented Sep 20, 2019

I'm confused, is the Vapor command returning a bash script or an error?

@jzonta
Copy link
Contributor Author

jzonta commented Sep 20, 2019

Sorry, not error message. Just returns:

`dir=$(cd "${0%[/\]*}" > /dev/null; cd '../laravel/vapor-cli' && pwd)

if [ -d /proc/cygdrive ]; then
case $(which php) in
$(readlink -n /proc/cygdrive)/*)
# We are in Cygwin using Windows php, so the path must be translated
dir=$(cygpath -m "$dir");
;;
esac
fi

"${dir}/vapor" "$@"`

After return to command line.

vapor

@cwilby
Copy link

cwilby commented Sep 20, 2019

Similar issue here on a different project: nunomaduro/phpinsights#41

Try running vendor/bin/vapor help without the php prefix?

@jzonta
Copy link
Contributor Author

jzonta commented Sep 20, 2019

In the Vapor documentation says to run command "php vendor/bin/vapor list" but the correct is "vendor/bin/vapor list" without php at first.

Thanks @cwilby

@jzonta jzonta closed this as completed Sep 20, 2019
@vortechron
Copy link

vendor/bin/vapor help without php solve my problem, tq @cwilby

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

3 participants