rogerkinsta / hello-world-gatsby

An example of how to set your Gatsby application up to enable deployment on Kinsta App Hosting services.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Photo by Monika Grabkowska on Unsplash

Kinsta - Hello World - Static Site With Gatsby

An example of how to deploy a static site built with Gatsby on Kinsta App Hosting services.


Kinsta is a developer-centric cloud host / PaaS. We’re striving to make it easier for you to share your web projects with your users. Focus on coding and building, and we’ll take care of deployment and provide fast, scalable hosting. + 24/7 expert-only support.

Get started for free, the first $20 is on us!

Application Hosting

Database Hosting

Dependency Management

During the deployment process Kinsta will automatically install dependencies defined in your package.json file.

Web Server Setup

Port

Kinsta automatically sets the PORT environment variable. You should not define it yourself and you should not hard-code it into the application. The serve packageutilizes the port set by Kinsta automatically.

Start Command

When deploying an application Kinsta will automatically create a web process with npm start as the entry point. Make sure to use this command to run your server.

Deployment Lifecycle

Whenever a deployment is initiated (through creating an application or re-deploying due to an incoming commit) the npm build command is run, followed by the npm start command.

About

An example of how to set your Gatsby application up to enable deployment on Kinsta App Hosting services.

License:MIT License


Languages

Language:JavaScript 100.0%