Skip to main content

Deploy with DigitalOcean

Time to complete: 30-45 minutes.

DigitalOcean is a cloud provider that offers a wide range of services including virtual servers, managed databases, and object storage. You can deploy your app to DigitalOcean using their App Platform.

Known limitation

If you are using a multi market setup (with /market/language in your urls) this provider will note work for you.

Pre-requisites

Steps

1. Create an account on DigitalOcean

To deploy your app with DigitalOcean you will need to create an account. To do that you can visit their official website.

2. Create your app

In the dashboard of your DigitalOcean account, click on Create -> App Plattform (https://cloud.digitalocean.com/apps/new). Connect with your GitHub account and select the repository where your storefront is located.

3. Configure your app

Plan and resources

Select what plan and resources you want for your app. Click Edit on your resource and change HTTP port to 3000.

Environment variables

Add your environment variables to your app.

tip

You can select Bulk Editor and paste the entire content of your .env-file to add all your environment variables at once.

App info & Save

Fill in the app name and region, then review your details and click Create Resources.

4. Deploy your app

When saving, your first deployment will start automatically. You can follow the progress in the dashboard. When it's done you will get a URL to your app which you can visit to see your app live. This deployment will work with the existing Dockerfile that comes with your Ralph Storefront.

5. Change environment variables

When your app is deployed, make sure to change BASE_URL and DOMAINS environment variables to use your newly created apps URL.

Conclusion

Now you have your Ralph Storefront deployed with DigitalOcean. For more information on all the features DigitalOcean has to offer, visit their official documentation.