Comments (10)
Had a chance to investigate this further. There seem to be some bugs in bitbucket's docker work. I changed to port 28101 and then updated the definition for the MJML docker container to be much more plain:
mjml:
image: liminspace/mjml-tcpserver:0.10.2
That managed to make the ports work correctly. Not sure why "expose" and "ports" were causing this to fail so randomly.
from django-mjml.
@bramski could you show your MJML_*
django settings?
from django-mjml.
MJML_BACKEND_MODE = env('MJML_BACKEND_MODE', default='cmd')
MJML_TCP_SERVERS = [
('127.0.0.1', 28102),
]
In the case of our CI environment MJML_BACKEND_MODE
becomes tcpserver
.
from django-mjml.
try to use mjml
instead of 127.0.0.1
in your django settings
from django-mjml.
Hmmm, all the other configured servers for CI use localhost as the hostname. I wasn't aware of the bitbucket docker container setting up local domain names but I'll give it a shot.
i.e. REDIS_CACHE_URL="redis://localhost:6379/zo-enterprise-test"
is how I have redis configured for CI on bitbucket pipelines.
from django-mjml.
and also try to use the default port settings of mjml-tcpserver
:
mjml:
image: liminspace/mjml-tcpserver:0.10.2
and
MJML_TCP_SERVERS = [
('mjml', 28101),
]
note that when you run CI in your configuration case it can use global ports to run services and if you run them more than one or one of them wasn't stopped correctly, you can have an issue with conflicts. just add docker-compose logs
in your CI script to see output and to be sure that all services were started before you run your target scripts.
from django-mjml.
Yeah this is coming up for me in the wild as well on our dev & staging systems.
from django-mjml.
from django-mjml.
provide all info to reproduce the issue locally and after that I'll try to fix that. currently I don't see any problem neither python library nor docker image. they are working on various projects quite stable and well (including gitlab-ci to run functional and unit tests)
from django-mjml.
from django-mjml.
Related Issues (20)
- Add support for Django 3.1 HOT 1
- MJML tags not being recognized HOT 3
- How to use with blocks? HOT 1
- Custom backend feature HOT 6
- Add support for django 3.2 HOT 7
- Mock httpserver HOT 2
- Dont start the server with django-mjml. HOT 3
- MJML compile error (via MJML TCP server): no working server HOT 6
- Update to support Django 4.0 HOT 4
- Setting necessary for allowing custom authentication/transport for http backend HOT 5
- Does mjml support blocks in templates ? HOT 1
- Possibility to render *.mjml templates to *.html templates HOT 1
- tcpserver.js removed in 1.0 release but is still in docs HOT 2
- Support django 4.2 HOT 1
- MJML server received too many data error firing and not sure why HOT 9
- Allow `check_mjml_command()` to be skipped on app start HOT 1
- Message in stderr is breaking django-mjml HOT 7
- mj-include doesn't work HOT 1
- Getting timeouts since 0.8.0 HOT 5
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 django-mjml.