Replies: 7 comments 5 replies
-
Nothing special about running Mojolicious on EC2. |
Beta Was this translation helpful? Give feedback.
-
Agreed. Nothing special. Spin up an EC2 instance and run your Mojo app
like normal. Open 80/443 in your AWS VPC Network ACLs and Security
Groups. Ignore all the fancy AWS products -- all you need is EC2 (or
Lightsail). Containers, S3, Route 53, databases... all fine, but not
necessary. You may grow your app to that, but do not start with such
complicated architecture for a hackathon.
…On Mon, Feb 28, 2022 at 4:19 PM Sebastian Riedel ***@***.***> wrote:
Nothing special about running Mojolicious on EC2.
—
Reply to this email directly, view it on GitHub
<#1921 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAD6K6WFTSXETW35YFP2CWLU5PYGZANCNFSM5PSGGDQA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
That is correct. EC2 = VPS = VM. When you spin up an Ubuntu EC2, it'll be
a VM like any other.
Yes, Mojolicious in Docker and Lambda are all fine and dandy, but that's
for scale. Don't waste your precious hackathon time on infrastructure
architecture where you want to focus on your app. Install a Postgres
database into your EC2 using `apt install` like anything else; I'd even
configure postgres to "trust" and not worry about authenticating to it.
Spin up an nginx application router if you really need one for your app,
otherwise just have Mojolicious listen on 80/443 directly. Perlbrew is
great, but certainly not necessary. Just use system perl and install
modules to system perl as root. You might want to use Perlbrew to use the
latest greatest Perl, tho. Of course, some of this is bad advice for
proper deployments... but you're hacking. Focus on your app and have
fun! :)
…On Mon, Feb 28, 2022 at 4:42 PM ajmetz ***@***.***> wrote:
Thanks for the super quick response! =).
A quick google and I ended up here:
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EC2_GetStarted.html
I'd heard of different methods - Mojolicious in a docker container,
Mojolicious in a linux instance, and Mojolicious on a serverless server via
Lambda. Looking up EC2, I'm guessing it's similar to a Cloud VPS (I
currently have a Cloud VPS via Neostrada / TotaalCloud with Ubuntu 21.10,
Nginx and Perlbrew - would EC2 be the AWS equivalent then?).
—
Reply to this email directly, view it on GitHub
<#1921 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAD6K6XUARPXGV27KKCJH5TU5P237ANCNFSM5PSGGDQA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
`` Part of the EC2 experience. I'm testing https://sourceforge.net/projects/cclite2/ on EC2, no problem for Ubuntu, but Centos seems problematic. I'm not using containers etc. the whole thing will run on a dedicated system later. |
Beta Was this translation helpful? Give feedback.
-
Hi Lars,
Yes, thanks. I've tried either way, root and non-root. What I want is 'easy' (I have a large install script) for non-expert. I do that with a deb for Ubuntu, Debian etc. I'll carry on investigating. The other thing is that there's less 'Perl' on Centos AWS, I have a lot of extra yum commands.
Best Hugh
…---------
https://www.hughbarnard.org
Twitter: @hughbarnard
------- Original Message -------
On Monday, March 28th, 2022 at 09:10, Lars Madsen ***@***.***> wrote:
Isn't roots PATH always rather limited? So it depends on where the bins ended up being installed after the installation.
—
Reply to this email directly, [view it on GitHub](#1921 (reply in thread)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AACY7QYHISFJYO3N2JJQMLTVCFSQNANCNFSM5PSGGDQA).
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi Lars
Thanks, I didn't and I've backed off now. Tried 'which' and it didn't find it. Really annoying because it's now almost seamless on Ubuntu. I'll take another run in a day or two and write about it again.
All the best Hugh
…---------
https://www.hughbarnard.org
Twitter: @hughbarnard
------- Original Message -------
On Monday, March 28th, 2022 at 11:24, Lars Madsen ***@***.***> wrote:
DId you search for it? Just to see where morbo and hypnotaod went? (I offen use locate morbo)
—
Reply to this email directly, [view it on GitHub](#1921 (reply in thread)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AACY7Q63FGJK56JHFBPLKB3VCGCGNANCNFSM5PSGGDQA).
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
AWS centos is /usr/local/bin/morbo and, of course hypnotoad...thanks to everyone for suggestions.
…---------
https://www.hughbarnard.org
Twitter: @hughbarnard
------- Original Message -------
On Tuesday, March 29th, 2022 at 08:40, Lars Madsen ***@***.***> wrote:
which just tells you it isn't in the PATH, you already knew that. That's why I suggested using locate instead. It searches a database of all the files on disk (updated via sudo updatedb) and thus can find programmes not in the PATH. Very useful.
—
Reply to this email directly, [view it on GitHub](#1921 (reply in thread)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AACY7Q7DDOZDGV5ZNRAYIADVCKXXTANCNFSM5PSGGDQA).
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Any tried and tested ways to run Mojolicious Webapps via Amazon Web Services, people here have experience with?
Never used AWS and suggested a Mojolicious project for an innovation week / hackathon at work, and a team was assembled, and on day one researched if using Amazon Web Services was viable. I'll hear the results of day one's research at the start of day two, =). Just wondered if this community had any two cents to offer?
Beta Was this translation helpful? Give feedback.
All reactions