-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
286 additions
and
156 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,6 @@ end_of_line = crlf | |
[*.yml] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.twig] | ||
insert_final_newline = false |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,3 +40,7 @@ | |
*.ttf binary | ||
*.otf binary | ||
*.eot binary | ||
*.gz binary | ||
*.bz2 binary | ||
*.7z binary | ||
*.zip binary |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,40 @@ | ||
/vendor/* | ||
# CakePHP specific files # | ||
########################## | ||
/config/app.php | ||
/tmp/* | ||
/config/.env | ||
/logs/* | ||
.idea | ||
/tmp/* | ||
/vendor/* | ||
|
||
# OS generated files # | ||
###################### | ||
.DS_Store | ||
.DS_Store? | ||
._* | ||
.Spotlight-V100 | ||
.Trashes | ||
Icon? | ||
ehthumbs.db | ||
Thumbs.db | ||
|
||
# Tool specific files # | ||
####################### | ||
# vim | ||
*~ | ||
*.swp | ||
*.swo | ||
# sublime text & textmate | ||
*.sublime-* | ||
*.stTheme.cache | ||
*.tmlanguage.cache | ||
*.tmPreferences.cache | ||
# Eclipse | ||
.settings/* | ||
# JetBrains, aka PHPStorm, IntelliJ IDEA | ||
.idea/* | ||
# NetBeans | ||
nbproject/* | ||
# Visual Studio Code | ||
.vscode | ||
# Sass preprocessor | ||
.sass-cache/ |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,24 @@ | ||
# Project to migrate baserCMS to CakePHP3 | ||
|
||
[](https://packagist.org/packages/cakephp/app) | ||
[](https://packagist.org/packages/ryuring/basercake3) | ||
|
||
baserCMSをCakePHP3化するためのプロジェクトです。 | ||
ソースコードはこちらから確認できます。: [cakephp/cakephp](https://github.com/ryuring/basercake3). | ||
|
||
## 開発に協力する準備 | ||
- MySQLでデータベースを用意 | ||
- `/.assets/basercake3.sql` をデータベースに流し込む | ||
- `/config/app.php` でデータベースへの接続設定を更新する | ||
- ブラウザで、/baser/admin/users/index にアクセスする | ||
- これからどうするか考える | ||
|
||
1. MySQLでデータベースを用意します。 | ||
2. `/.assets/basercake3.sql` をデータベースに流し込みます。 | ||
3. `/config/app.php` でデータベースへの接続設定を更新します。 | ||
4. ブラウザで、/baser/admin/users/index にアクセスして表示を確認します。 | ||
5. これからどうするか考える | ||
|
||
マシンのWebサーバーを使用してデフォルトのホームページを表示するか、組み込みWebサーバーを以下のように起動することができます。 | ||
|
||
```bash | ||
bin/cake server -p 8765 | ||
``` | ||
|
||
その後、 `http://localhost:8765` にアクセスしてようこそページを表示してください。 | ||
|
||
|
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,12 @@ | ||
#!/usr/bin/php -q | ||
<?php | ||
/** | ||
* Command-line code generation utility to automate programmer chores. | ||
* | ||
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | ||
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) | ||
* | ||
* Licensed under The MIT License | ||
* For full copyright and license information, please see the LICENSE.txt | ||
* Redistributions of files must retain the above copyright notice. | ||
* | ||
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) | ||
* @link http://cakephp.org CakePHP(tm) Project | ||
* @since 2.0.0 | ||
* @license http://www.opensource.org/licenses/mit-license.php MIT License | ||
*/ | ||
|
||
$minVersion = '5.6.0'; | ||
if (file_exists('composer.json')) { | ||
$composer = json_decode(file_get_contents('composer.json')); | ||
if (isset($composer->require->php)) { | ||
$minVersion = preg_replace('/([^0-9\.])/', '', $composer->require->php); | ||
} | ||
} | ||
if (version_compare(phpversion(), $minVersion, '<')) { | ||
fwrite(STDERR, sprintf("Minimum PHP version: %s. You are using: %s.\n", $minVersion, phpversion())); | ||
exit(-1); | ||
} | ||
|
||
// Check platform requirements | ||
require dirname(__DIR__) . '/config/requirements.php'; | ||
require dirname(__DIR__) . '/vendor/autoload.php'; | ||
include dirname(__DIR__) . '/config/bootstrap.php'; | ||
|
||
exit(Cake\Console\ShellDispatcher::run($argv)); | ||
use App\Application; | ||
use Cake\Console\CommandRunner; | ||
|
||
// Build the runner with an application and root executable name. | ||
$runner = new CommandRunner(new Application(dirname(__DIR__) . '/config'), 'cake'); | ||
exit($runner->run($argv)); |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/usr/bin/env bash | ||
# Used as a default to seed config/.env which | ||
# enables you to use environment variables to configure | ||
# the aspects of your application that vary by | ||
# environment. | ||
# | ||
# To use this file, first copy it into `config/.env`. Also ensure the related | ||
# code block for loading this file is uncommented in `config/boostrap.php` | ||
# | ||
# In development .env files are parsed by PHP | ||
# and set into the environment. This provides a simpler | ||
# development workflow over standard environment variables. | ||
export APP_NAME="__APP_NAME__" | ||
export DEBUG="true" | ||
export APP_ENCODING="UTF-8" | ||
export APP_DEFAULT_LOCALE="en_US" | ||
export SECURITY_SALT="__SALT__" | ||
|
||
# Uncomment these to define cache configuration via environment variables. | ||
#export CACHE_DURATION="+2 minutes" | ||
#export CACHE_DEFAULT_URL="file://tmp/cache/?prefix=${APP_NAME}_default&duration=${CACHE_DURATION}" | ||
#export CACHE_CAKECORE_URL="file://tmp/cache/persistent?prefix=${APP_NAME}_cake_core&serialize=true&duration=${CACHE_DURATION}" | ||
#export CACHE_CAKEMODEL_URL="file://tmp/cache/models?prefix=${APP_NAME}_cake_model&serialize=true&duration=${CACHE_DURATION}" | ||
|
||
# Uncomment these to define email transport configuration via environment variables. | ||
#export EMAIL_TRANSPORT_DEFAULT_URL="" | ||
|
||
# Uncomment these to define database configuration via environment variables. | ||
#export DATABASE_URL="mysql://my_app:secret@localhost/${APP_NAME}?encoding=utf8&timezone=UTC&cacheMetadata=true"eIdentifiers=false&persistent=false" | ||
#export DATABASE_TEST_URL="mysql://my_app:secret@localhost/test_${APP_NAME}?encoding=utf8&timezone=UTC&cacheMetadata=true"eIdentifiers=false&persistent=false" | ||
|
||
# Uncomment these to define logging configuration via environment variables. | ||
#export LOG_DEBUG_URL="file://logs?levels[]=notice&levels[]=info&levels[]=debug&file=debug" | ||
#export LOG_ERROR_URL="file://logs?levels[]=warning&levels[]=error&levels[]=critical&levels[]=alert&levels[]=emergency&file=error" |
This file contains 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
Oops, something went wrong.