Question

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

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!


Submit an answer


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!

Sign In or Sign Up to Answer

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.

Bobby Iliev
Site Moderator
Site Moderator badge
April 21, 2024

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

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel