Sorry, I missed the line where you set the environment variable.

On Wed, Aug 14, 2019 at 6:14 PM Veesh Goldman <rabbive...@gmail.com> wrote:

> Morbo listens on port 3000 by default. Have you tried using '-l http://
> *:8080'?
>
> On Wed, Aug 14, 2019 at 2:10 PM verenceLola <verencel...@gmail.com> wrote:
>
>> Hello,
>> I've been trying to dockernize my Mojolicious app lately and I'm running
>> into issues.
>> When I publish the application's port on the docker host the server is
>> returning an empty response. This however works when I use hyponotoad
>> server.
>> I've tried the example on your Github gist and its working okay. Is there
>> something that I'm missing. Here is the Dockerfile.
>> FROM perl:latest
>> LABEL MAITAINER 'Vincent Onyango' 'verencel...@icloud.com'
>> LABEL APPLICATION 'API Gateway'
>> VOLUME [ "/application" ]
>> COPY cpanfile cpanfile
>> COPY cpanfile.snapshot cpanfile.snapshot
>> RUN curl -L https://cpanmin.us | perl - App::cpanminus
>> RUN cpanm -qn --installdeps .
>> WORKDIR /application
>> ENV MOJO_LISTEN=http://127.0.0.1:8080
>> EXPOSE 8080
>> ENTRYPOINT [ "/usr/local/bin/morbo","-v", "script/api_gateway" ]
>>
>> I'm mounting my code I created using Morbo generate cammand.  using this
>> `docker run --name app -d -p 8080:8080 -v $PWD/<app_name>:/application
>> <image_name>`
>>
>> Kindly assist anyone
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Mojolicious" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to mojolicious+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/mojolicious/4f1a1c93-b5e6-4d9c-bcf5-e547f1e5387d%40googlegroups.com
>> <https://groups.google.com/d/msgid/mojolicious/4f1a1c93-b5e6-4d9c-bcf5-e547f1e5387d%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mojolicious+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mojolicious/CAO-W_8DczBaxxecKQa2oUhZ_k%3Djvob3eMnPk7DR6ThkSFz2z2g%40mail.gmail.com.

Reply via email to