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

Become a contributor for community

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

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

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

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.