dmstr / phd5-app Goto Github PK
View Code? Open in Web Editor NEW:purple_heart: Universal web application built upon Docker, PHP & Yii 2.0 Framework
Home Page: http://phd.dmstr.io
License: Other
:purple_heart: Universal web application built upon Docker, PHP & Yii 2.0 Framework
Home Page: http://phd.dmstr.io
License: Other
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
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
phd5-app/src/views/layouts/main.php
Line 44 in 1167298
@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'.
Keep mailcatcher in test, not sure about worker....
for 5.3 and 5.4(?)
"conflict": {
"bedezign/yii2-audit": ">=1.1.2"
},
fails due to namespaced migrations
Since it contains the "whole" app including PHP and nginx.
*** 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)
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
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
Test errors in CI: https://git.hrzg.de/dmstr/phd5-app/-/jobs/113175
CC: @dmstr/developers
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?
Is there any plans for future Yii 2.1 release or maybe very early alpha version?
Supported by Yii 2.0.10 (or .12?), see also dmstr/yii2-migrate-command#23
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.