Tray: Difference between revisions

From Han Wiki
Jump to navigation Jump to search
add a note to restart httpd
Line 42: Line 42:
Create a new Laravel application.
Create a new Laravel application.


<div style="border: 3px solid #444444; background-color: black; color: white; padding: 10px">
<div style="border-radius: 7px; border: 3px solid #444444; background-color: black; color: white; padding: 1em;">
<span style="color:#00ff00;">mhan</span><span style="color:#444444;">@</span><span style="color:#00cccc;">brahms</span><span style="color:#999999">:</span><span style="color:blue;">~/testing</span><span style="color:#cccccc;">
<span style="color:#00ff00;">mhan</span><span style="color:#444444;">@</span><span style="color:#00cccc;">brahms</span><span style="color:#999999">:</span><span style="color:blue;">~/testing</span><span style="color:#cccccc;">
$ laravel new sanban
$ laravel new sanban

Revision as of 16:54, 26 February 2015

This is a page for taking notes for current workflow process. Intended for further processing and organization.

Laravel 5

Installation

Download Laravel installer using Composer.

$ composer global require "laravel/installer=~1.1"
Changed current directory to /home/mhan/.composer
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing symfony/process (v2.6.4)
    Down    Downloading: 100%

  - Installing symfony/console (v2.6.4)
    Down    Downloading: 100%

  - Installing guzzlehttp/streams (2.1.0)
    Down    Downloading: 100%

  - Installing guzzlehttp/guzzle (4.2.3)
    Down    Downloading: 100%

  - Installing laravel/installer (v1.2.0)
    Down    Downloading: 100%

symfony/console suggests installing symfony/event-dispatcher ()
symfony/console suggests installing psr/log (For using the console logger)
Writing lock file
Generating autoload files

Instead of adding ~/.composer/vendor/bin to the PATH environment variable, I simply made a symbolic link to it in ~/bin/ folder.

$ ln -s ~/.composer/vendor/bin/laravel ~/bin/laravel

Create a new Laravel application.

mhan@brahms:~/testing $ laravel new sanban
Crafting application...
Generating optimized class loader
Compiling common classes
Compiling views
Application key [CJwBsllwDbWLlxy7zH7zRATmSu2laUyA] set successfully.

Then I enable access to this new application via web. This is an apache config.

<VirtualHost *:80>
        ServerAdmin admin@hostname.com
        ServerName sanban.hostname.com
        ServerSignature Off
        DocumentRoot /srv/www/sanban.hostname.com/public

        <Directory /srv/www/sanban.hostname.com/public>
                Options -Indexes +FollowSymLinks -MultiViews
                AllowOverride All
                Require all granted
        </Directory>
</VirtualHost>

Make sure to restart the httpd (i.e. # service apache2 restart on Ubuntu).

  • Tested on Ubuntu 14.04.2 LTS, Apache/2.4.9, PHP 5.5.15RC1, Laravel (5.0; installer version 1.2.0) / medium / less than 10 minutes