#The GET method is not supported for route /. Supported methods: HEAD.

1 messages · Page 1 of 1 (latest)

leaden pumice
#

Hi, I just tried to deploy my laravel apllication on my hosting, But I got this error:

The GET method is not supported for route /. Supported methods: HEAD.

I tried command php artisan route:cache but doesnt work. Any suggestions? Thanks

brisk spindle
#

php artisan optimize
php artisan optimize:clear

tried this ?

leaden pumice
#

yeah I tried. However I dont know which files to deploy again on hosting.

#

But I think somehow I solved this

#

But now I have problem with this error:

#

file_put_contents(C:\Users\ssosta\Documents_škola\Vlastné\emFloors_\storage\framework/sessions/UGUsRoBCBtpFCfEUdjPTtQcAZ9mekNSwLtsBYk0r): Failed to open stream: No such file or directory

#

why is there my local directory even though it is deployed on the server?

brisk spindle
#

is it solved now ?

leaden pumice
#

idk

#

error just stopped showing

#

and now is displayed another one

vital latch
#

😂

#

Error after error

#

😕

lyric dove
brisk spindle
#

okay what's issue with that

lyric dove
#

it will cache your routes and it is absolutely useless in dev

brisk spindle
#

yes but when doing clear it will release it

vital latch
#

It should not be a problem in dev

#

Do you mean locally ?

brisk spindle
#

and will not cache it further, as i have experienced it

vital latch
#

Or dev server ?

lyric dove
#

why bother, its a development/local env? you dont need the teeny ammount of extra performance on an env you are constantly updating, only makes for a mess and errors

#

just add it to your rollout in prod and thats it shrug

vital latch
#

Some companies have development environment to which they deploy to jn which case it’s fine. Local you should not be.

lyric dove
#

yeah but thats more of a staging then it is dev

vital latch
#

Depends on how complex the workflow is

#

I’ve seen dev -> multiple staging envs -> pre-prod -> prod

#

They have their benefits when working on larger projects

brisk spindle
#

oh okay

vital latch
#

With multiple long running features

leaden pumice
#

okey so sum up is that I have to edit env right?

#

I am totally new in Laravel so sorry when I dont understand

vital latch
#

@leaden pumice No. That is discussion of something else. To know your problem please share the full error message including the stacktrace.