Coder Social home page Coder Social logo

salmanravoof / hello-world-laravel Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kinsta/hello-world-laravel

0.0 0.0 0.0 133 KB

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

License: MIT License

JavaScript 0.22% PHP 65.86% Blade 33.92%

hello-world-laravel's Introduction

Photo by Łukasz Nieścioruk on Unsplash

Kinsta - Hello World - Laravel

An example of how to set your Laravel application 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

Because Laravel is using both PHP and Node, you need to add buildpacks for Node.js and PHP.

Dependency Management

Laravel is 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 Laravel requires the APP_KEY environment variable to be set. If this key is not set you will see an error 500 page served by Laravel. You can generate an app key yourself locally, or you can use this online Laravel key generator. Once you have a key you can add it as an environment variable in the Settings section of your app.

Web Server Setup

The default web process will be heroku-php-apache2. In this example we've created an .htaccess file that reroutes all requests to public/index.php for Laravel. If you'd like to change this command you can go to the Processes section in MyKinsta for your application. You could use:

  • heroku-php-apache2 /public
  • php artisan serve --host 0.0.0.0 --port 8080

hello-world-laravel's People

Contributors

danielpataki avatar lpgera avatar palmiak avatar runthis 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.