Comments (5)
Cache clearing tested, but it isn't working.
$ sudo docker exec octobercms_web_1 artisan view:clear
Compiled views cleared!
$ sudo docker exec octobercms_web_1 artisan cache:clear
Cache cleared successfully.
$ sudo docker exec octobercms_web_1 artisan debugbar:clear
Debugbar Storage cleared!
$ sudo docker exec octobercms_web_1 october up
Migrating application and plugins...
System
- Nothing to migrate.
Backend
- Nothing to migrate.
Cms
- Nothing to migrate.
October.Demo
- Nothing to update.
October.Drivers
- Nothing to update.
RainLab.Builder
- Nothing to update.
RainLab.Debugbar
- Nothing to update.
$
Steps to reproduce:
- Create a new octobercms docker container.
- Install Builder plugin.
- Install Debugbar plugin.
- No debugbar plugin on frontend nor backend.
Tested with SQLite and MySQL databases.
Any idea?
from debugbar-plugin.
I have it working now.
TL;DR: Add
DEBUGBAR_ENABLED=true
to .env file
Tests done:
- .env file
- Docker environment variable
- Debugbar config file
.env file
Add this line to .env file:
DEBUGBAR_ENABLED=true
Result: Works!
Docker environment variable
Modify or add environment section to docker-compose.yml file
environment:
- DEBUGBAR_ENABLED =true
After this run the update to the container:
sudo docker-compose up -d
Result: NO debugbar
Debugbar config file
Modify the config.php inside the plugin directory (./html/plugins/rainlab/debugbar/config/config.php
).
From:
'enabled' => env('DEBUGBAR_ENABLED', null),
To:
'enabled' => env('DEBUGBAR_ENABLED', true),
Result: Works!
Need verification
According to the documentation, it should be working out of the box if debug=true
on the app.php config file, but it doesn't.
Please use this as a workaround and do more testing!
from debugbar-plugin.
Hi!
After 8 months, there's no response about this and today some labels were added and them closed.
Have you tested it? I've tried in different containers and the result is the same.
The main point is why it doesn't work with OctoberCMS debug mode (debug=true
in app.php), and it has to be forced on the configuration file of DebugBar.
Can you please test that?
Regards
from debugbar-plugin.
@pablorq apologies, your last comment said you had found a workaround and it had seemed you were satisfied with that, hence why I closed it.
I have tested this on numerous sites and do not have the same issues you are encountering - I can turn the debug bar on and off simply by changing debug
to true or false respectively, so I believe there's another step here that is missing between what I am doing on my installs and what you might be doing on your installs.
For example, there should be no need to set DEBUGBAR_ENABLED
in the environment at all if you want it to be controlled by app.debug
- the default is to set DEBUGBAR_ENABLED
to null
which means it will instead use app.debug
as expected. I also don't know if it's perhaps Docker doing something tricky.
It's also possible that this has been resolved in a more recent version of the plugin. You should instead use Composer to install the most recent version of October CMS and the Debug Bar plugin and see if that resolves the issue.
from debugbar-plugin.
If you need help with this plugin: http://octobercms.com/premium-support
from debugbar-plugin.
Related Issues (20)
- Plugin is hidden on the marketplace HOT 4
- Failed to install from repository HOT 1
- Models collector does not work with October (Laravel 5.5 only) HOT 3
- Debug bar is still enabled even if plugin is disabled HOT 9
- Error when saving data from backend HOT 4
- v3.1.0 does't work HOT 11
- 500 Server Error after install ? HOT 12
- Plugin availability. HOT 1
- The plugin is hidden and cannot be installed - via artisan plugin:install HOT 3
- REST API profiling in 3.1.0 HOT 6
- Improve quality of event performance tracking HOT 4
- issues with debugAjax = true HOT 2
- Composer install crash the whole application HOT 2
- how to install DebugBar to octobercms version 470? HOT 1
- New Collectors HOT 7
- OctoberModelsCollector causes models not able to being serialized HOT 1
- Uncaught TypeError: url.indexOf is not a function HOT 1
- Twig "debug" functionality broken HOT 2
- Incompatible with latest Barryvdh\Debugbar HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from debugbar-plugin.