Hi,
I'm currently ready to deploy my web application who have been written within CGI and have already deployed an hello world application into Google App Engine, but it use Mojolicious instead of my own Framework now I wanna know if it's possible to use CGI instead of Mojolicious.
I want to run my application by accessing https://avant-garde-248215.appspot.com/cgi-bin/script.pl?lang=FR&page=main
I've tryed to create a yaml file :
# Use the latest perl image from dockerhub
FROM perl:latest
# Install the web framework mojolicious
RUN curl -L https://cpanmin.us | perl - -M https://cpan.metacpan.org -
+n Mojolicious
# Instruct mojolicious to listen on port 8080 and open the port
ENV MOJO_LISTEN http://*:8080
EXPOSE 8080
# add your application code and set the working directory
ADD . /app
WORKDIR /app
# change the permissions and run the application
RUN chmod +x main.pl
RUN chmod +x script.pl
CMD ["./main.pl", "daemon"]
but not sure if I've to set :
ADD . /app
WORKDIR /app
instead of cgi-bin
thx
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.