Coder Social home page Coder Social logo

kinsta / hello-world-statamic Goto Github PK

View Code? Open in Web Editor NEW
38.0 5.0 6.0 170 KB

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

License: MIT License

Procfile 0.02% PHP 96.20% Vue 0.21% Antlers 3.56%
kinsta-app-hosting statamic

hello-world-statamic's Introduction

Frame 78 (6)

Kinsta - Statamic Boilerplate

An example of how to set Statamic up to enable deployment 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.

Installation

Statamic is a flat-file CMS, which means all the data is stored in the git repository. Before pushing the code to Kinsta Application Hosting, you have to install it locally and create a super user account. After doing this, commit and push all the changes to the repository.

Remember that Kinsta Application Hosting works best for stateless applications, which means that it will be best to work on your content locally and use Kinsta just to serve the website to users.

Dependency Management

Statamic is based on Laravel. This means that it's a regular PHP-based application, so during the deployment process Kinsta will automatically install dependencies defined in your composer.json file.

Environment Variables

Note that Statamic requires few environment variables to be set:

  • APP_KEY - you can get the APP_KEY either by running php artisan key:generate locally or use this generator
  • APP_KINSTA - set it true.

Required buildpacks

Warning Your first deploy will fail in most cases because it won't have all the required Buildbacks. Remember to set them up after the first deployment.

In most cases we want our application to also build our CSS/JS files we need to add two Buildpacks:

  • Node.js
  • PHP

Web Server Setup

When deploying an application Kinsta will automatically create a web process with heroku-php-apache2 public/. It can be later altered in the Processes tab in the UI.

What is Statamic?

Statamic is a powerful, flat-file CMS built on Laravel.

Key Features

  • There’s no database until you need one.
  • It’s a front-to-back CMS until you need to go headless.
  • It’s dynamically powered by PHP & Laravel until you need to go static.
  • It’s full-stack until you go JAMstack.
  • Host it on any modern PHP server until you want to go serverless.
  • Use the control panel unless you don’t feel like it. Code editors are great too.
  • You can version control everything unless you don’t want to.

More info on the Statamic website.

Watch How to Set Up a Statamic Application on Kinsta

Watch the video

hello-world-statamic's People

Contributors

christi-kinsta avatar lpgera avatar palmiak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  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.