LoginSignup
0
0

More than 5 years have passed since last update.

【動けばいい人用】DockerでPostgresを立ててローカルでEC-CUBE4を動かす

Last updated at Posted at 2018-08-13

サクッと開発を始めたい人へ

SQLite3で動かしてみよう

まずは公式ドキュメントに従ってSQLite3で動かしてみよう。

Dockerのイメージとってきます。

docker pull postgres:9

Dockerを起動します。

docker run --name eccube -p 5432:5432 -e POSTGRES_USER=dev -e POSTGRES_PASSWORD=password -d postgres:10

EC-CUBEにDBの接続情報の設定をします。

.env ファイルの DATABASE_URL を書き換えます。

.env
DATABASE_URL=postgresql://dev:password@127.0.0.1:5432/eccube

EC-CUBEをインストールします。

bin/console e:i -n

サーバを起動します。

bin/console s:r

アクセスします。

0
0
0

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
0
0