How to Deploy Your Codebase Using Cosmic JS


Cosmic JS makes it easy to deploy your websites and applications to the web. You can deploy an app from any git repository to the Cosmic App Server from any Bucket. Cosmic JS uses Dokku (Docker + Heroku-like deployment) to deploy your app from any GitHub, BitBucket or any other public repo to its own subdomain. 

With Cosmic JS alleviating your need for an installed CMS and server, your application stack can be boiled down to the following items:

1. GitHub repo
2. Cosmic JS CMS API
3. Cosmic app server


How to Deploy Your Codebase Using Cosmic JS šŸš€

Deployment will be successful as long as your application follows the Heroku deployment guidelines. If you have connected your GitHub account to Cosmic JS, you will be able to deploy your private GitHub repos as well.

1. Go to your Bucket > Bucket Settings > Deploy Web App
2. Enter the URL for the public Git repo that you are deploying
3. Deploy your codebase and manage your app's content from the Cosmic JS Dashboard



The following add-ons are also available with Cosmic JS Deployment:

1. Custom Domains: Easily point your custom domain to your Cosmic App Server instance.
2. One-click SSL: Secure your app with SSL. SSL certs are automatically renewed.

I hope that you've found this tutorial helpful. If you have questions or comments about Content Editor Features in the Cosmic JS system, I'd love to hear about them. You can refer to my Cosmic JS Profile for additional content on how to intuitively navigate the Cosmic JS Dashboard. 

carson@cosmicjs.com 

Was this article helpful?

Thank you! Your input helps us improve our articles and resources. If you have any other questions or comments, please contact support.

You may also like


To demonstrate how easy it is to get started with Cosmic JS, we'll utilize the Cosmic JS CLI to quickstart a Vue.js Music App. This Music website was built using Vue, Nuxt and Cosmic JS. Users can upload and play tracks, upload and manage album art plus leave comments.
When you're laser focused on writing songs, getting the most out of your studio time, and finding gigs, you can't be bothered with setting up a static site for your band or dealing with abstruse CMS systems.
Cosmic Community Member Reagan McFarland just debuted the new Alexa Skill codebase to add Objects to your Cosmic JS Bucket via voice. In this video, Cosmic JS co-founder Tony Spiro takes you on a quick tour of how to demo the Alexa To Do app from the Alexa developer console.
Cosmic JS makes it easy to manage content for your Bootstrap applications. In this blog we'll quickstart a Bootstrap Landing Page using the Cosmic CLI. This single page website landing page is built using Node.js and a minimal theme from Start Bootstrap.
Iā€™m going to demonstrate how to get started integrating your Cosmic-powered content with your favorite third-party applications using Zapier.
In this short walk-through, I show you how to add localization to your Cosmic JS Object Types.