By rnond
This is my first time with DigitalOcean and deploy. I am trying to deploy a fresh Laravel project to the “thainurses” droplet. If this works, I plan to permanently move my web sites to DigitalOcean. However it failed with one significant error. And I cannot find a solution after several hours.
Here is the full log https://pastebin.com/raw/FPiSmJpi
As we can see in the log, there is another minor error:
[157.230.242.59] < chmod: missing operand
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi there @rnond,
I’ve seen this with Laravel, there is actually a big discussion about this problem on the official Laravel GitHub repository here.
What you need to do is remove the closure from your API routes at routes/api.php.
If you are not using the API routes file,at the bottom of that routes/api.php file just comment these 3 lines:
Route::middleware('auth:api')->get('/user', function (Request $request) {
return $request->user();
});
Hope that this helps! Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.