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!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
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.
Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.
