# bundle install --path vendor/bundle
bundle install
> $ bundle exec roadwork --version
roadwork 0.5.5
export AWS_ACCESS_KEY_ID='****'
export AWS_SECRET_ACCESS_KEY='****'
export AWS_REGION='ap-northeast-1'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"require": { | |
"ext-curl" : "*", | |
"symfony/browser-kit" : "2.6.*", | |
"symfony/css-selector" : "2.6.*", | |
"symfony/dom-crawler" : "2.6.*", | |
"symfony/finder" : "2.6.*", | |
"symfony/process" : "2.6.*", | |
"symfony/event-dispatcher" : "2.6.*", | |
"guzzle/http" : "~3.1", |
項目名 | 内容 |
---|---|
FROM | 作成元のコンテナーイメージを「リポジトリー:タグ名」で指定 |
MAINTAINER | コンテナーイメージ作成者の名前を記載 |
ENV | コマンド実行時の環境変数を設定 |
RUN | 指定のコマンドを実行 |
ADD | イメージ内にファイルを追加 |
EXPOSE | コンテナー内のアプリケーションが使用するポート番号を登録 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
web: | |
build: ./docker/php | |
ports: | |
- "8080:80" | |
volumes: | |
- ./src:/var/www/html | |
links: | |
- db:db | |
environment: | |
APP_ENV: dev |
- 5.5
mysql> SELECT @@GLOBAL.sql_mode;
+-------------------+
| @@GLOBAL.sql_mode |
+-------------------+
| |
+-------------------+
1 row in set (0.00 sec)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:5.6-apache | |
RUN a2enmod rewrite | |
RUN usermod -u 1000 www-data |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$arr = [ | |
(object) ['name' => 'aaa'], | |
(object) ['name' => 'bbb'], | |
(object) ['name' => 'ccc'], | |
]; | |
foreach ($arr as $v) { | |
var_dump($v->name); |