Comments (15)
I'm not sure, I'm not able to replicate this.
Have you tried manually editing the .env file.
from dockerfiles.
I will try to do it, but the feature is definitely broken with deployed with docker-compose.
from dockerfiles.
I checked and it looks like APP_DEBUG=false
in .env
file, but it still shows the PHP debug bar at the bottom of the browser window.
from dockerfiles.
@maxguru can you share your docker-compose.yml
file please ?
from dockerfiles.
version: "2"
services:
db:
image: mysql
environment:
MYSQL_DATABASE: ninja
MYSQL_ROOT_PASSWORD: somethingsomething
app:
image: invoiceninja/invoiceninja
links:
- db:mysql
environment:
APP_DEBUG: 1
DB_USERNAME: root
DB_PASSWORD: somethingsomething
volumes:
- ./data/storage:/var/www/app/storage
- ./data/logo:/var/www/app/public/logo
web:
image: nginx
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
links:
- app
volumes_from:
- app
ports:
- "80:80"
cron:
image: invoiceninja/invoiceninja
links:
- db:mysql
user: www-data
environment:
APP_DEBUG: 1
entrypoint: |
bash -c 'bash -s <<EOF
trap "break;exit" SIGHUP SIGINT SIGTERM
sleep 300s
while /bin/true; do
DB_USERNAME=root DB_PASSWORD=somethingsomething /usr/local/bin/php /var/www/app/artisan ninja:send-invoices
DB_USERNAME=root DB_PASSWORD=somethingsomething /usr/local/bin/php /var/www/app/artisan ninja:send-reminders
sleep 1d
done
EOF'
volumes_from:
- app
I have customized nginx.conf to make things work right with a reverse proxy.
By the way, I had to chmod a+rwx data/*
to make it work. Also, see issue #18.
from dockerfiles.
Can you try to define APP_DEBUG
at 0
?
version: "2"
services:
db:
image: mysql
environment:
MYSQL_DATABASE: ninja
MYSQL_ROOT_PASSWORD: somethingsomething
app:
image: invoiceninja/invoiceninja
links:
- db:mysql
environment:
APP_DEBUG: 0
DB_USERNAME: root
DB_PASSWORD: somethingsomething
volumes:
- ./data/storage:/var/www/app/storage
- ./data/logo:/var/www/app/public/logo
web:
image: nginx
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
links:
- app
volumes_from:
- app
ports:
- "80:80"
cron:
image: invoiceninja/invoiceninja
links:
- db:mysql
user: www-data
environment:
APP_DEBUG: 0
entrypoint: |
bash -c 'bash -s <<EOF
trap "break;exit" SIGHUP SIGINT SIGTERM
sleep 300s
while /bin/true; do
DB_USERNAME=root DB_PASSWORD=somethingsomething /usr/local/bin/php /var/www/app/artisan ninja:send-invoices
DB_USERNAME=root DB_PASSWORD=somethingsomething /usr/local/bin/php /var/www/app/artisan ninja:send-reminders
sleep 1d
done
EOF'
volumes_from:
- app
from dockerfiles.
How do I change it in the running container? If I do docker-compose down; docker-compose up
it will wipe my data.
from dockerfiles.
can you try to do a restart
?
from dockerfiles.
I did docker-compose stop
and docker-compose start
but it didn't help.
from dockerfiles.
@hillelcoren can dotenv
override $_ENV
?
from dockerfiles.
Adding a value to the .env file should set it in the $_ENV, I'm not sure if it will override a value if it's already there.
from dockerfiles.
Hello, @maxguru did you tried the new image ?
from dockerfiles.
@maxguru docker-compose stop and docker-compose start are not enough, you'd need to docker-compsoe rm in the middle.
from dockerfiles.
@maxguru can we close this ?
from dockerfiles.
Yes, looks like it is working.
from dockerfiles.
Related Issues (20)
- Could not open input file: artisan HOT 1
- Grey screen after successful setup
- XMLHttpRequest error when requesting PDF files - after migrating between servers HOT 3
- QUEUE_CONNECTION configuration in Docker - can't find clear answer. HOT 1
- not opening login page
- Unable to view / print / download PDF invoices in docker HOT 11
- [BUG] Docker selfhosted bug HOT 8
- Connection reset by peer error with docker install HOT 2
- Raspberry Pi DB Error HOT 4
- dockerhub page says port 80 is opened, but it's port 9000 fcgi that is opened HOT 10
- Docker in k8s, testing, slow initial page load (including page refresh) HOT 15
- Tax line item not displaying in Totals area of invoice HOT 2
- after upgrade empty white page HOT 2
- Blank screen after upgrade HOT 4
- Permissions Error with Lost+Found Directory HOT 2
- git clone not pulling latest version HOT 6
- Update helm image? HOT 2
- Container startup only works with bind mount; `cp: can't create directory '/var/www/app/storage/app': Permission denied` HOT 5
- Http links requested when visiting a https page HOT 1
- Helm Chart commonLabels vs podLabels
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 dockerfiles.