LoginSignup
5
5

More than 5 years have passed since last update.

EC-CubeによるECサイト立ち上げ

Posted at

ECCUBEをターミナルで立ち上げた際のメモ書き。

環境

  • MAMP
  • EC-CUBE3

初期設定

GithubからECCUBE3をクローンする.
ローカルで動かすので、MAMPのhtdocsフォルダにダウンロードする

$ git clone http://github.com/EC-CUBE/ec-cube.git

フォルダへ移動する.

$ cd ec-cube

composerをインストールする.

$ curl -sS https://getcomposer.org/installer | php

インストール後、「eccube_install.sh」の以下の部分を修正.

eccube_install.sh
# Configuration
#-- Shop Configuration
CONFIG_PHP="app/config/eccube/config.php"
ADMIN_MAIL=${ADMIN_MAIL:-"admin@example.com"}
SHOP_NAME=${SHOP_NAME:-"EC-CUBE SHOP"}
HTTP_URL=${HTTP_URL:-"http://test.local"}
HTTPS_URL=${HTTPS_URL:-"http://test.local/"}
ROOT_URLPATH=${ROOT_URLPATH:-"/"}
DOMAIN_NAME=${DOMAIN_NAME:-""}
ADMIN_DIR=${ADMIN_DIR:-"admin/"}

DBSERVER=${DBSERVER-"127.0.0.1"}
DBNAME=${DBNAME:-"cube3_dev"}
DBUSER=${DBUSER:-"cube3_dev_user"}
DBPASS=${DBPASS:-"password"}

ADMINPASS="f6b126507a5d00dbdbb0f326fe855ddf84facd57c5603ffdf7e08fbb46bd633c"
AUTH_MAGIC="droucliuijeanamiundpnoufrouphudrastiokec"

DBTYPE=$1;

case "${DBTYPE}" in
"pgsql" )
    #-- DB Seting Postgres
    PSQL=psql
    PGUSER=postgres
    DROPDB=dropdb
    CREATEDB=createdb
    DBPORT=5432
;;
"mysql" )
    #-- DB Seting MySQL
    MYSQL=mysql
    ROOTUSER=root
    ROOTPASS=$DBPASS
    DBSERVER="127.0.0.1"
    DBPORT=3306
;;

インストール

最後に下記コマンドでインストールする.

$ sh eccube_install.sh mysql
5
5
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
5
5