Report this

What is the reason for this report?

How do I deploy a Laravel Inertia Vue MySQL project using App Platform?

Posted on April 15, 2024

Hello,

I wanted to know if anyone can tell me how to deploy a Laravel Inertia Vue and MySQL project using App Platform. I am currently still working on the project but I believe that I am at a good place with enough features that a user can experience and would still look good on my portfolio. I would like to deploy what I have and I am confused on how to go about it. I have not found a tutorial that explains step by step. I have tried on my own but I don’t see anything everything’s white and my console has mixed content errors. I also added a database but I’m not sure if I set it up right. I would appreciate any help. Thanks!



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.

Hey!

I believe that this should work out of the box just as a standard Laravel app as described here:

There are a couple of things that you might want to do to make sure that your frontend assets are compiled and that you’ve defied your APP_URL correctly:

  • In your build command make sure to add npm install && npm run production
  • Set the APP_URL environment variable to ${APP_URL} that way you will make sure that the correct hostname is set so that you don’t get the mixed content errors.

Feel free to share more details about the exact errors that you are seeing and I will try to advise you furhter!

Best,

Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.