Más contenido relacionado
La actualidad más candente (20)
Similar a AzureでLaravel動かしてみた (20)
AzureでLaravel動かしてみた
- 2. Self Introduction
{
"name" : "Keiji Kamebuchi",
"corporation" : "pnop Inc.",
"mail" : "kamebuchi@pnop.co.jp",
"web" : "http://buchizo.wordpress.com/",
"twitter" : "@kosmosebi",
"award" : ["Microsoft MVP for Azure",
"Microsoft Regional Director"],
"timezone" : "-08:00 (PST)"
}
Copyright© 2016, JAZUG All Rights Reserved.
buchizo
Senior Fellow
@kosmosebi
- 4. 実は私は…
PHP / Laravel 初心者です
優しくしてください (;´Д`)
会社の同僚はPHP詳しい
でもOSSは好き
Azure チョットデキル
Azure/MicrosoftはOSS好き
Copyright© 2016, JAZUG All Rights Reserved.
- 6. Azure App Service?
.NET Framework や PHP, Python, node.js が動くアプリケーショ
ンサーバー(PaaS)
用途によって大枠を4種類から選びます
• Web Apps / Mobile Apps / API Apps / Logic Apps
容易にスケール可能
GitやGitHubを使ったCI
FTP使ったデプロイも可
FreeプランからPremiumまで用途に応じて
選べる課金体系と性能
Zend Z-Ray使えたりもします
Copyright© 2016, JAZUG All Rights Reserved.
- 7. DBは?
Azureが提供
SQL Database (Microsoft SQL Server互換のSaaS)
DocumentDB (NoSQL)
Azure Table Storage (KVS) / Azure Blob Storage (ファイル)
3rd Party
ClearDB (MySQLを提供するSaaS)
• Azure上から作ったり操作できます
その他
SQLite (App Service上のローカルディスクに置く)
自前MySQL (IaaS上で自分で構築)
Copyright© 2016, JAZUG All Rights Reserved.
- 9. 作り方
新規 -> Web + モバイル -> Web Apps
ホスト名、料金プラン(と作成先のデータセンター)、管理用
のグループを入力して作成
Copyright© 2016, JAZUG All Rights Reserved.
- 15. CompileCommonClasses.php
<?php
namespace App¥Console¥Commands;
use Illuminate¥Foundation¥Console¥OptimizeCommand;
use Illuminate¥Support¥Composer;
class CompileCommonClasses extends OptimizeCommand
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'optimize:classes';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Optimize common classes for Laravel';
/**
* Create a new command instance.
*
* @return void
*/
public function __construct(Composer $composer)
{
parent::__construct($composer);
}
/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
$this->info('Compiling common classes');
$this->compileClasses();
}
}
Copyright© 2016, JAZUG All Rights Reserved.