Upsun User Documentation

Deploy Laravel

Upsun Beta access

Test and provide feedback for our newest offering - Upsun!

You can register for the Beta by clicking here and completing the form.

Sign up for Beta access

Now you have your configuration for deployment and your app set up to run on Upsun. Make sure all your code is committed to Git.

git add .
git commit -m 'Add Upsun configuration files'

As a final check, let’s ensure your repository is correctly connected to your Upsun project. If you haven’t already run it, run this interactive command:

upsun project:set-remote

It’s now time to push it and build your Laravel application:

upsun push

Your code is built, producing a read-only image that’s deployed to a running cluster of containers.

If you aren’t using a source integration, the log of the process is returned in your terminal. If you’re using a source integration, you can get the log by running upsun activity:log --type environment.push.

Upsun will now read your configuration files and deploy your project using default container resources. If you don’t want to use those default resources, define your own resource initialization strategy, or amend those default container resources after your project is deployed.

When the build finished, you’re given the URL of your deployed environment. Click the URL to see your site.

If your environment wasn’t active and so wasn’t deployed, activate it by running the following command:

upsun environment:activate

Et voilร , your Laravel application is live!

Is this page helpful?