Mojolicious on Openshift

85 views
Skip to first unread message

Aniruddha Pandit

unread,
Nov 30, 2015, 6:20:22 AM11/30/15
to Mojolicious
Hello All,

I have created a Mojolicious application (not lite) on my local machine and it works flawlessly. The next logical step is to host in on a web hosting service. Considering that my database is MySQL and having heard that OpenShift is a good ( and free) service, I decided to use that. 

I have searched for the past few weeks now for a proper How-To but have not found any that work. 

I have tried the normal way, the DIY way, etc, but have not had any success at all. Is there a good guide / tutorial which anyone has used for putting up their Mojolicious Web App on Openshift ?


Thanks in advance for your help.

Anir
Message has been deleted

Алексей Орлов

unread,
Nov 30, 2015, 7:22:00 AM11/30/15
to Mojolicious
Hi!

Look repo and a working example is here.

понедельник, 30 ноября 2015 г., 14:20:22 UTC+3 пользователь Aniruddha Pandit написал:
Message has been deleted

Aniruddha Pandit

unread,
Dec 2, 2015, 4:42:39 AM12/2/15
to Mojolicious
Ok. Got your code working. Now will work on getting my code up ! Thanks a tonne ! 

Anir

Aniruddha Pandit

unread,
Dec 2, 2015, 6:14:25 AM12/2/15
to Mojolicious
Sorry to bother you again.

When I updated the code with small changes (e.g. change in template) and I stopped the cartridge before trying git push, there are errors occurring when trying to stop the cartridge and I cannot get the cartridge to work again. Is this an issue with the stop code ? Where am I going wrong ?

Thanks

Anir

Aniruddha Pandit

unread,
Dec 2, 2015, 6:51:10 AM12/2/15
to Mojolicious
Hello again,

I have tried a few times now and everytime I am getting the same problem.

When I try to change the code and do a new push, I am unable to stop the app and do a new push. I am constantly getting the following error when trying to stop or restart the app. The web console is also throwing the same error.

Failed to execute: 'control stop' for

/var/lib/openshift/565ed50189f5cf3ee700005d/diy


Any ideas ?


Thanks,


Anir

sri

unread,
Dec 2, 2015, 7:19:43 AM12/2/15
to Mojolicious
Look repo and a working example is here.

You shouldn't be using Morbo like that, it's only a development server. For production use on a cloud platform you usually want the daemon or prefork commands.


--
sebastian 

Алексей Орлов

unread,
Dec 2, 2015, 10:41:30 AM12/2/15
to mojol...@googlegroups.com
Sebastian, I have a question.

How can I use ENV variables within  my config file to use their with hypnotoad?
I want to something like this:

{
  listen => ["http://$ENV{OPENSHIFT_DIY_IP}:$ENV{OPENSHIFT_DIY_PORT}"]
}

--
You received this message because you are subscribed to a topic in the Google Groups "Mojolicious" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mojolicious/NopgqpfO9Yc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mojolicious...@googlegroups.com.
To post to this group, send email to mojol...@googlegroups.com.
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Ivan Kolisnyk

unread,
Dec 3, 2015, 8:10:44 AM12/3/15
to Mojolicious
Hi.
I deployed my mojolicious project on http://ramnode.com. I'm satisfied. All configurations described on http://mojoblog.net/en.
You can order hosting for $3.5/month only.

понеділок, 30 листопада 2015 р. 13:20:22 UTC+2 користувач Aniruddha Pandit написав:
Reply all
Reply to author
Forward
0 new messages