Tray: Difference between revisions

29 bytes removed ,  26 February 2015
m
→‎Post-installation updates: a note about the time zone
Line 1: Line 1:
This is a page for taking notes for current workflow process. Intended for further processing and organization.
This is a page for taking notes for current workflow process. Intended for further processing and organization.


== Laravel 5 ==
== Installation ==


* ''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
* ''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


=== Installation ===
=== Prerequisite environment setup ===
 
==== Prerequisite environment setup ====


Make sure you have PHP 5.4 or greater version installed. On a Debian-derived distribution such as Ubuntu, it's as simple as <code># apt-get install php5</code>.
Make sure you have PHP 5.4 or greater version installed. On a Debian-derived distribution such as Ubuntu, it's as simple as <code># apt-get install php5</code>.
Line 27: Line 25:
</div>
</div>


==== Files and applications ====
=== Files and applications ===


Download Laravel installer using Composer.
Download Laravel installer using Composer.
Line 99: Line 97:
Make sure to restart the httpd (i.e. <code>$ service apache2 restart</code> on Ubuntu).
Make sure to restart the httpd (i.e. <code>$ service apache2 restart</code> on Ubuntu).


==== Post-installation updates ====
=== Post-installation updates ===


Laravel installation through its own installer may not get the latest version, so execute <code>$ composer update</code> once from the project home directory. In this example, I'd run it from <span class="shell">/srv/www/sanban</span>.
Laravel installation through its own installer may not get the latest version, so execute <code>$ composer update</code> once from the project home directory. In this example, I'd run it from <span class="shell">/srv/www/sanban</span>.
Line 135: Line 133:
I add the application short name as an extension to <span class="package">artisan</span> because I have multiple instances of Laravel applications and create links to corresponding <span class="package">artisan</span> executables.
I add the application short name as an extension to <span class="package">artisan</span> because I have multiple instances of Laravel applications and create links to corresponding <span class="package">artisan</span> executables.


===== For unit testing =====
==== For unit testing ====


For compatibility reasons, it's better to use the composer-installed phpunit package.  You can do this by running <code>$ composer update --dev</code> which will install phpunit package automatically.  You may also want to create a symlink to it. This example creates a phpunit.sanban symlink which you can use for this particular instance.
For compatibility reasons, it's better to use the composer-installed phpunit package.  You can do this by running <code>$ composer update --dev</code> which will install phpunit package automatically.  You may also want to create a symlink to it. This example creates a phpunit.sanban symlink which you can use for this particular instance.
Line 163: Line 161:
</div>
</div>


===== Personal preferences =====
==== Personal preferences ====


I browse, search, and many other things all in CLI, and sometimes it's cumbersome to type in long path names. Symlinks to the rescue! I use <code>i</code> for <span class="shell">/vendor/laravel/framework/src/Illuminate</span>.
I browse, search, and many other things all in CLI, and sometimes it's cumbersome to type in long path names. Symlinks to the rescue! I use <code>i</code> for <span class="shell">/vendor/laravel/framework/src/Illuminate</span>.