How to Deploy a Website with a Custom Domain Using Cosmic
Cosmic Blog How to Deploy a Website with a Custom Domain Using Cosmic
by Tony Spiro on June 14, 2016
This article goes over features (web deployment, custom domains) that are now deprecated. We now recommend that you deploy your websites and apps to your preferred hosting providers.
Cosmic is a powerful CMS API that allows you to manage content for your websites and applications faster and easier. But did you know that you can also use Cosmic to deploy code to your website (in any language) from any GitHub repository? In addition to deploying content and code, starting today you can also add unlimited domains to your deployed application. This is revolutionary because it means that moving forward all you need to launch your website is a git repository, a domain name provider and Cosmic! No more hosting server necessary! I’ve added a couple of screencasts for your viewing. Let’s get started.
Let's go ahead and install an app, but you could just as easily skip this step and deploy your own application pointed to your Cosmic bucket. After installing your app, you will be prompted to deploy the application.
Deploy the App
Next click "Deploy Web App" to launch the web application to http://[your-bucket-slug].cosmicapp.co. Once you do this it will take about a minute for the application to deploy on a custom instance of the Cosmic app server. While this is working its magic, let's add our custom domains…
Add Custom Domains
The Cosmic app server subdomain is great for development and staging, but when you go live, you're going to want to add our own custom domains. Cosmic makes this incredibly easy by providing the option to add custom domains to your deployed application. Here are the 4 easy steps:
1. Go to Settings > Deploy Web App > Add Custom Domains (upgrade your account if needed)
2. Add your custom domains
3. Click "Set Domains"
4. Go to your domain name registrar's website and point your A Name Records to the Cosmic app server located at 184.108.40.206
Now navigate to your domain and notice that you now have your application hosted at your custom domain! Add as many domains / subdomains as you need! Whenever you need to deploy changes to the app, just push the changes up to your GitHub repository and click "Redeploy Web App".
Cosmic now gives you the power to deploy a website faster and more nimbly than any other system. And all you need is a git repository, a domain name provider and Cosmic!
What is headless commerce? What does a headless commerce architecture look like? And how do you build one? And do you need to in the first place? Get all your headless commerce questions answered right here.
At Cosmic, it's our mission to help teams of developers and content creators build great content-powered apps together. We're happy to announce the new Additional Users Add-On to offer a flexible pricing option for growing teams.
We released our additional users Add-on a few weeks ago and it has become one of the most popular products. We think customers really like the flexibility it gives their team to upgrade just a portion of their usage plan instead of jumping up to the next plan. With that flexibility in mind, we are happy to offer two more add-ons to help you get the most out of Cosmic while allowing more billing flexibility.
In this installment of the Cosmic Developer Spotlight Series, we sat down with Ben Hong, a Senior Front End Engineer residing in Washington, D.C. Ben wears several hats, first as a Front End Engineer at GitLab, as well as being an active Google Developer Expert and Vue.js community partner. He's also put some work into VuePress, one of the newest static site generator for Vue.js projects.
Both Gatsby and Next.js are among the most popular frameworks for websites and online applications. In this article, we’re going to compare Gatsby vs. Next.js to help you choose the right framework for your next web project. We’ll talk about how they handle data and render static websites.
You can have up to 5 Free Buckets at any given time each with a 14-day trial. During this trial, you have free access to all Bucket Add-ons including Webhooks, Localization, Revision History and more.
At any point during of your 14-day trial you can upgrade your Bucket, use the Free Bucket Referral Program to extend your Free Bucket free trial time, or earn a Free Bucket forever by contributing to the Cosmic community.
Refer a friend to signup and get 14 more days of trial time which can be applied to any of your Free Buckets. There is no limit to the number of referrals you can use to get extended trial time.
Overage rate: $80 per additional 100,000 API requests per month.
If you go over your plan's API request limit for the month, Cosmic support will reach out to inform you. At the point of contact you will have the choice to either upgrade your Bucket to the next higher plan or pay the overage charges at the end of the calendar month.
API Requests Add-on Available: $54.90 per additional 100,000 API requests per month.
File Storage Add-on Available: $3 per additional 1,000 files per month.
API Requests Add-on
You can add additional API Requests to any Bucket for $54.90 per month per additional 100,000 API requests.