beyondcode / nova-tinker-tool

Use the power of Tinker within your Nova application.
MIT License
115 stars 10 forks source link

Not working on Vapor #13

Closed curtisblackwell closed 4 years ago

curtisblackwell commented 4 years ago

Not sure if it's just impossible on Vapor, but I get a 500 error with the message "Writing to /home/sbx_user1051/.config/psysh is not allowed." when I try to run commands on Vapor.

bernhardh commented 4 years ago

Which version of laravel do you use and have you installed tinker as well?

composer require laravel/tinker

I think this package isn't supporting Laravel 6.x and Tinker 2.x

bernhardh commented 4 years ago

But I think your base problem is, taht it tries to write to a dir, which doesn't exists or has no rights to write. To fix this issue, just add

XDG_CONFIG_HOME=/ABSOLUT_PATH_TO_YOUR_APP/storage/tinker

to you .env file (of course correct the path). Afterwards, create this directory and give it write permissions for the apache/nginx user.

curtisblackwell commented 4 years ago

This project was on hiatus and was ultimately cancelled, so I was unable to try.