Coder Social home page Coder Social logo

dmstr / phd5-app Goto Github PK

View Code? Open in Web Editor NEW
75.0 17.0 15.0 25.54 MB

:purple_heart: Universal web application built upon Docker, PHP & Yii 2.0 Framework

Home Page: http://phd.dmstr.io

License: Other

Makefile 6.17% PHP 91.78% JavaScript 0.09% Shell 0.25% Dockerfile 1.61% Hack 0.05% Less 0.05%
yii2 docker php application-framework 12-factor yii2-application-template docker-image docker-container modular

phd5-app's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

phd5-app's Issues

Error during tests "make all"

tests$ make all
/Applications/Xcode.app/Contents/Developer/usr/bin/make version build
8052fb1
#
# Building images from docker-compose definitions
#
docker-compose build --pull
ERROR: The Compose file is invalid because:
Service php has neither an image nor a build context specified. At least one must be provided.
make[1]: *** [build] Error 1
make: *** [all] Error 2

Rename `make run-tests` to `make test`

It's more widely used and intuitive.

We had make TEST run-tests in an earlier version, that's the main reason behind the current situation. Won't affect phd5-template apps (aka planck)

CC: @dmstr/developers

SEO Settings

$route = Url::toRoute(Yii::$app->controller->action->uniqueId);

@schmunk42 Maybe we have to change this line into $route = yii\helpers\Url::to(''); or something similar.

If I am page e.g. /frontend/default/index, the $route would be /<language>/frontend/frontend/default/index because \Yii::$app->controller->action->uniqueId returns the unique id and not the current route (prefixed with a slash).
So to create a setting for with 'app.seo.titles', 'app.seo. descriptions', or 'app.seo. keywords' set as section will require an key like /<language>/frontend/frontend/default/index to work.

When we use yii\helpers\Url::to('') as the key for this setting, we also have the advantage that page with the same route but different params can have its own 'SEO Settings'.

Upgrade error from 5.2 to 5.3 (migration)

*** applying Da\User\Migration\m000000_000001_create_user_table
    > create table {{%user}} ...Exception: SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'app_user' already exists
The SQL being executed was: CREATE TABLE `app_user` (
	`id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
	`username` varchar(255) NOT NULL,
	`email` varchar(255) NOT NULL,
	`password_hash` varchar(60) NOT NULL,
	`auth_key` varchar(32) NOT NULL,
	`unconfirmed_email` varchar(255),
	`registration_ip` varchar(45),
	`flags` int(11) NOT NULL DEFAULT '0',
	`confirmed_at` int(11),
	`blocked_at` int(11),
	`updated_at` int(11) NOT NULL,
	`created_at` int(11) NOT NULL
) CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB (/app/vendor/yiisoft/yii2-dev/framework/db/Schema.php:664)
#0 /app/vendor/yiisoft/yii2-dev/framework/db/Command.php(1263): yii\db\Schema->convertException(Object(PDOException), 'CREATE TABLE `a...')
#1 /app/vendor/yiisoft/yii2-dev/framework/db/Command.php(1075): yii\db\Command->internalExecute('CREATE TABLE `a...')
#2 /app/vendor/yiisoft/yii2-dev/framework/db/Migration.php(323): yii\db\Command->execute()
#3 /app/vendor/2amigos/yii2-usuario/src/User/Migration/m000000_000001_create_user_table.php(37): yii\db\Migration->createTable('{{%user}}', Array, 'CHARACTER SET u...')
#4 /app/vendor/yiisoft/yii2-dev/framework/db/Migration.php(114): Da\User\Migration\m000000_000001_create_user_table->safeUp()
#5 /app/vendor/yiisoft/yii2-dev/framework/console/controllers/BaseMigrateController.php(725): yii\db\Migration->up()
#6 /app/vendor/yiisoft/yii2-dev/framework/console/controllers/BaseMigrateController.php(199): yii\console\controllers\BaseMigrateController->migrateUp('Da\\User\\Migrati...')
#7 [internal function]: yii\console\controllers\BaseMigrateController->actionUp(0)
#8 /app/vendor/yiisoft/yii2-dev/framework/base/InlineAction.php(57): call_user_func_array(Array, Array)
#9 /app/vendor/yiisoft/yii2-dev/framework/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#10 /app/vendor/yiisoft/yii2-dev/framework/console/Controller.php(148): yii\base\Controller->runAction('', Array)
#11 /app/vendor/yiisoft/yii2-dev/framework/base/Module.php(528): yii\console\Controller->runAction('', Array)
#12 /app/vendor/yiisoft/yii2-dev/framework/console/Application.php(180): yii\base\Module->runAction('migrate', Array)
#13 /app/vendor/yiisoft/yii2-dev/framework/console/Application.php(147): yii\console\Application->runAction('migrate', Array)
#14 /app/vendor/yiisoft/yii2-dev/framework/base/Application.php(386): yii\console\Application->handleRequest(Object(yii\console\Request))
#15 /app/yii(32): yii\base\Application->run()
#16 {main}
*** failed to apply Da\User\Migration\m000000_000001_create_user_table (time: 0.074s)

CC: @eluhr @handcode

Using twbs 4.0.0 alpha4

Hi,

by trying to use yii2/bootstrap2.1@dev it's not possible to update composer as the filemanager widgets are breaking compatibility ...

Any idea on how to sove this?

Thanks and cheers, Philipp

use BUILD ARG for base image version

like so

FROM dmstr/php-yii2:${STACK_PHP_BASE_IMAGE_VERSION}-nginx

instead of

FROM dmstr/php-yii2:7.1-fpm-3.0-rc1-nginx

Note! Requires docker-17.05

Stream logs in console yii application

It kind of usefull to have all logs in docker, but, for example, sometimes there is a situation when you need to do something manually in yii application inside container and all logs are getting into console together with appropriate output from commands. So how to deal with it?

Version for Yii 2.1

Is there any plans for future Yii 2.1 release or maybe very early alpha version?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.