LoginSignup
3

More than 5 years have passed since last update.

Nitrous.ioで Laravelを動かす

Last updated at Posted at 2014-11-14

環境整備

zip解凍ができるように、peclでインストール

pear config-set php_ini /home/action/.parts/etc/php5/php.ini
pecl config-set php_ini /home/action/.parts/etc/php5/php.ini     
pecl install zip

バーチャルホストを作成

vim /home/action/.parts/etc/apache2/httpd.conf
<VirtualHost *:4000>                                                                                    
    DocumentRoot "/home/action/workspace/laravel/public"                                                
    <Directory "/home/action/workspace/laravel/public">                                                 
        Options Indexes FollowSymLinks                                                                  
        AllowOverride All                                                                               
        Require all granted                                                                             
    </Directory>                                                                                        
</VirtualHost> 

Apache2 を再起動

parts restart apache2

Composerのバージョンアップ

composer self-update

Laravelのプロジェクトを作成

cd /home/action/workspace/
composer create-project laravel/laravel laravel --prefer-dist

プレビュー

[preview->port 4000]

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3