Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/improve/php7' into fix197
Browse files Browse the repository at this point in the history
  • Loading branch information
nobuhiko committed Jul 28, 2018
2 parents 46b0a8d + b339e6f commit bc53e11
Show file tree
Hide file tree
Showing 9 changed files with 49 additions and 57 deletions.
25 changes: 0 additions & 25 deletions Gruntfile.js

This file was deleted.

1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: $(composer config bin-dir)/heroku-php-apache2 html/
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
[![Build Status](https://travis-ci.org/EC-CUBE/eccube-2_13.svg)](https://travis-ci.org/EC-CUBE/eccube-2_13)
[![Build status](https://ci.appveyor.com/api/projects/status/4k58ucq2smwc4h7n/branch/master?svg=true)](https://ci.appveyor.com/project/ECCUBE/eccube-2-13/branch/master)
[![Coverage Status](https://coveralls.io/repos/EC-CUBE/eccube-2_13/badge.png)](https://coveralls.io/r/EC-CUBE/eccube-2_13)
[![Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy)

---

Expand Down
23 changes: 23 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "EC-CUBE2",
"description": "EC-CUBE2 on Heroku",
"website": "https://github.com/EC-CUBE/eccube-2_13",
"repository": "https://github.com/EC-CUBE/eccube-2_13",
"keywords": ["php", "ec", "e-commerce", "ec-cube"],
"scripts": {
"postdeploy": "php ./setup_heroku.php"
},
"addons": [
{
"plan": "heroku-postgresql",
"options": {
"version": "9.6"
}
}
],
"buildpacks": [
{
"url": "heroku/php"
}
]
}
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"issues": "https://github.com/EC-CUBE/eccube-2_13/issues"
},
"config": {
"disable-tls": true,
"disable-tls": false,
"secure-http": false,
"vendor-dir": "data/vendor",
"platform": {
Expand All @@ -29,6 +29,9 @@
"codeception/codeception": "*"
},
"require": {
"php": ">=5.3.9",
"ext-mbstring": "*",
"ext-gd": "*",
"smarty/smarty": "*",
"pear-pear.php.net/PEAR" : "*",
"pear-pear.php.net/Mail" : "*",
Expand Down
10 changes: 7 additions & 3 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion html/.htaccess
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# 基本は SC_Initial.php で設定するが、ini_setで反映されないものはここで設定する

<IfModule mod_php5.c>
php_value mbstring.language Japanese
php_flag mbstring.encoding_translation off
php_value output_handler none
Expand All @@ -13,3 +13,5 @@ php_value mbstring.internal_encoding UTF-8
php_value upload_max_filesize 5M
#php_value post_max_size 8M
php_flag register_globals off
</IfModule>

27 changes: 0 additions & 27 deletions package.json

This file was deleted.

10 changes: 10 additions & 0 deletions setup_heroku.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php
putenv("DB=pgsql");
putenv("DBSERVER=".getenv('DB_HOST'));
putenv("DBNAME=".getenv('DB_DATABASE'));
putenv("USER=".getenv('DB_USERNAME'));
putenv("DBPASS=".getenv('DB_PASSWORD'));
putenv("HTTP_URL=http://".getenv('HEROKU_APP_NAME').".herokuapp.com");
putenv("HTTPS_URL=http://".getenv('HEROKU_APP_NAME').".herokuapp.com");

exec("sh ./eccube_install.sh postgres");

0 comments on commit bc53e11

Please sign in to comment.