Giter Club home page Giter Club logo

hello-world-hugo's Introduction

Kinsta - Hello World - Static Site With Hugo πŸš€

An example of how to deploy a static site built with Hugo on Kinsta Hosting.


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. You can focus on coding and building, and we'll take care of deployments with fast, scalable hosting.

At Kinsta, Static Sites are free, and you can host up to 100 sites on your account for completely free.

Kinsta offers 24/7 support via our chat system, which is always one click away in MyKinsta for customers with a paid plan or service.

If you only have a Static Site Hosting account, we have detailed Static Site Hosting documentation available. You can also connect with developers and knowledgeable community members in the Kinsta Community forum.

Setup

Static Site Hosting [click to expand]

Dependency Management

Kinsta automatically installs dependencies defined in your package.json file during the deployment process.

Setting the Build Command, Node version, and Publish directory

After connecting the repository, Static Site Hosting will automatically try to populate all the fields with the correct values.

Configuration option Value
Build command npm run build
Node version 18.16.0
Publish directory public

Deployment Lifecycle

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

Application Hosting [click to expand]

Dependency Management

Kinsta automatically installs dependencies defined in your package.json file during the deployment process.

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 package utilizes the port set by Kinsta automatically.

Start Command

When deploying an application, Kinsta automatically creates 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.

What is Hugo

Hugo is one of the fastest static site generators. It focuses on amazing speed and flexibility and it's built using GO More information is available on the gohugo.io website.

hello-world-hugo's People

Contributors

maciekpalmowski avatar palmiak avatar olawanlejoel avatar kristofdombi avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.