Go to file
Brett O'Donnell 87d3978628
Update bower-cli.php
2018-06-30 21:42:31 +09:30
build update and cleanup 2018-04-12 17:56:05 +09:30
runtime convert to yii2 2015-08-08 04:01:35 +09:30
src Update bower-cli.php 2018-06-30 21:42:31 +09:30
web added no image and tweak display fields 2015-08-12 09:42:36 +09:30
.bowerrc convert to yii2 2015-08-08 04:01:35 +09:30
.env-dist .env file is optional 2015-08-10 21:50:52 +09:30
.gitignore strip /downloads from url 2015-08-12 09:55:46 +09:30
Procfile convert to yii2 2015-08-08 04:01:35 +09:30
README.md Update README.md 2018-03-16 02:36:22 +10:30
composer.json update and cleanup 2018-04-12 17:56:05 +09:30
composer.lock composer update 2018-03-16 03:22:57 +10:30
docker-compose.override.yml update and cleanup 2018-04-12 17:56:05 +09:30
docker-compose.yml update and cleanup 2018-04-12 17:56:05 +09:30
yii store serialized data in binary fields 2015-08-10 21:46:54 +09:30

README.md

Minetest Bower

This application uses Yii2 Framework and is hosted on Heroku.

Installing

Install minetest-bower:

git clone git@github.com:cornernote/minetest-bower.git

Install composer:

curl -s http://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer

Install dependencies with composer:

composer install

Using Heroku

Setup:

sudo apt-get install postgresql-client
wget -O- https://toolbelt.heroku.com/install-ubuntu.sh | sh
heroku login

Deploy:

git push heroku master

Run migrations:

heroku run php /app/yii migrate/up --interactive=0

Bash:

heroku run bash

Bash with vim

heroku vim

View logs:

heroku logs --tail

Connect to database:

heroku pg:psql

Database commands:

\dt # list tables
\d+ package # describe package table
DELETE FROM package WHERE name='modname'; # delete a package

More info:

https://devcenter.heroku.com/articles/getting-started-with-php

Application Commands

Update all packages from git repositories:

heroku run php /app/yii package/update

Import mods from MTPM:

heroku run php /app/yii package/import-mtpm

Resources