2015-08-09 16:57:48 +09:30
|
|
|
# Minetest Bower
|
|
|
|
|
2015-08-09 20:17:09 +09:30
|
|
|
This application uses [Yii2 Framework](http://www.yiiframework.com/) and is hosted on [Heroku](https://heroku.com/).
|
|
|
|
|
|
|
|
|
|
|
|
## Installing
|
|
|
|
|
2015-08-10 13:36:00 +09:30
|
|
|
Install minetest-bower:
|
|
|
|
|
|
|
|
```
|
|
|
|
git clone git@github.com:cornernote/minetest-bower.git
|
|
|
|
```
|
|
|
|
|
2015-08-09 20:17:09 +09:30
|
|
|
Install composer:
|
|
|
|
|
|
|
|
```
|
2015-08-10 13:36:00 +09:30
|
|
|
curl -s http://getcomposer.org/installer | php
|
2015-08-09 20:17:09 +09:30
|
|
|
mv composer.phar /usr/local/bin/composer
|
|
|
|
```
|
|
|
|
|
|
|
|
Install dependencies with composer:
|
|
|
|
|
|
|
|
```
|
|
|
|
composer install
|
|
|
|
```
|
|
|
|
|
2015-08-09 16:57:48 +09:30
|
|
|
|
|
|
|
## Using Heroku
|
|
|
|
|
|
|
|
Deploy:
|
|
|
|
|
|
|
|
```
|
|
|
|
git push heroku master
|
|
|
|
```
|
|
|
|
|
|
|
|
Run migrations:
|
|
|
|
|
|
|
|
```
|
|
|
|
heroku run php /app/yii migrate/up --interactive=0
|
|
|
|
```
|
|
|
|
|
|
|
|
View database:
|
|
|
|
|
|
|
|
```
|
|
|
|
heroku pg:psql
|
|
|
|
```
|
|
|
|
|
|
|
|
View logs:
|
|
|
|
|
|
|
|
```
|
|
|
|
heroku logs --tail
|
|
|
|
```
|
|
|
|
|
|
|
|
More info:
|
|
|
|
|
|
|
|
https://devcenter.heroku.com/articles/getting-started-with-php
|