DO Ideas 2

Create a Laravel 1-Click application

Create a 1-click application that has a standard Laravel framework installed on a LAMP stack with all of its dependancies configured.
This would make D.O a go-to place for Laravel developers to get their projects deployed in a production environment in minutes.

  • Anonymous
  • Sep 11 2018
  • Attach files
  • Anonymous commented
    September 11, 2018 16:52

    Thx.

  • Stephen Rees-Carter commented
    September 11, 2018 16:52

    I don't understand why this is needed, as when you're deploying a Laravel application, all you need is a standard LAMP stack installed. The Laravel dependencies (i.e. via composer) are all pulled in with your code, when you're ready to deploy it live. Simply clone the git repository, run composer install, and run the migrations. All steps that can't be pre-built into an image.

  • Alfredo Ramirez Ortega commented
    September 11, 2018 16:52

    I'll create a L5 deployment script for DO. Follow me @devOps92

  • Dimitri Acosta commented
    September 11, 2018 16:52

    I prefer to run Laravel within a LEMP stack.

  • Gav commented
    September 11, 2018 16:52

    @Daniel - true, but Laravel Forge is $10/month and up . . . .

  • Gav commented
    September 11, 2018 16:52

    +1 for this - would be nice to have a LEMP or LAMP stack with Laravel pre-installed

  • Jesper commented
    September 11, 2018 16:52

    Agreed! We need this so much!

  • Anonymous commented
    September 11, 2018 16:52

    I know its quite easy to install it, but a 1 click application would be appreciated, and maybe together with preset ftp?

  • Daniel commented
    September 11, 2018 16:52

    I guess that's what laravel forge is for, since it'sbeimg developed by the laravel community itself it is way more of a go to than DO could ever be.

  • Anonymous commented
    September 11, 2018 16:52

    Im aware that you can install LAMP and then install Laravel. I was just thinking for novice users of DO and Laravel could have a 1 click solution.
    There are Wordpress, Joomla and other framework/CMS once-click installs available, i feel Laravel would be useful and would probably gain good attention towards D.O as one of the few hosts that has a quick deployment option for Laravel :)

  • Kamal Nasser commented
    September 11, 2018 16:52

    You can create a droplet based on the LAMP application image and run this command to install the dependencies:

    sudo apt-get install php5-mcrypt php5-curl curl

    Clone your project in /var/www/

    git clone git@github.com:example/example.git /var/www

    Download composer:

    cd /var/www
    curl -sS https://getcomposer.org/installer | php

    Install the php dependencies:

    php composer.phar install

    Edit /etc/apache2/sites-enabled/default and set DocumentRoot to /var/www/public.

    Restart Apache:

    sudo service apache2 restart

    That's it -- you should be able to browse to http://yourip and see your Laravel app.

  • Patrick Ancillotti commented
    September 11, 2018 16:52

    Have you considered using puppet to do this, and then just simply sharing the puppet bits with other folks ?