LoginSignup
2
1

More than 5 years have passed since last update.

baserCMSのテストコード開発

Last updated at Posted at 2017-06-21

baserCMS

国産CMS、cakePHP
https://basercms.net/
https://github.com/baserproject/basercms

インストール

上記githubよりクローンする

テストコード開発

vagrantの設定ファイルがはいっているので、vagrantで開発
vagrantインストールは割愛

# デフォルトファイルをコピー
cp Vagrantfile.default Vagrantfile

# Vagrant を起動
vagrant up

# Vagrant にログイン
vagrant ssh

# アプリケーションフォルダに移動
cd /vagrant/app

# baserCMSをリセット
./Console/cake bc_manager reset

# baserCMSをインストール
./Console/cake bc_manager install "http://192.168.33.10" "mysql" "admin" "basercms" "webmaster@example.org" --host "localhost" --database "basercms" --login "root" --password "root" --prefix "mysite_" --data "nada-icons.default" 

#全てのテストを実行
./Console/cake baser_test baser BcAll

・リセットの際にエラーがでたら
app/Config/install.phpとdatabase.phpを削除する

・再インストール時はdbのbasercmsの中にデータがあるとエラーがでるので、上記の2つを削除した後に
192.168.33.10/phpMyAdminにアクセスしてbasercmsの中を全て削除してからインストールする

公式

環境構築
テスト

2
1
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
2
1