How to deploy on Hostgator?

76 views
Skip to first unread message

André Miranda Moreira

unread,
Mar 5, 2014, 3:45:49 AM3/5/14
to res...@googlegroups.com
Hi, fellas!

I'm about to finish this RESTAS web site and I want to deploy and test it, show it to other people, etc.

The trouble is: although it runs nicely locally, I have no idea how to deploy it.

Can someone give me some clues on how to do it?

OBS.: I already have a domain name and a shared server on Hostgator.

Orivej Desh

unread,
Mar 5, 2014, 6:12:11 PM3/5/14
to res...@googlegroups.com
Typically, shared hosting providers do not let you run your binaries on their host.  In this case, for you to use Lisp they must have installed your Lisp implementation themselves and given you instructions on how to run it. This is also the case for Node, Ruby, Python — everything which does not fit into the model of CGI.

However, from the description on their site, Hostgator shared hosting is more flexible than others.  They give you SSH access.  In this case, the easiest scenario for you is to:
  • configure a dedicated port number for your account (or request it from the support)
  • copy your project to the hosting
  • connect via SSH
    • download your Lisp implementation
    • run it at the configured port as you would do locally
    for it to remain running after you disconnect, you must either
  • detach it from the terminal
    • maybe restas/contrib/restas-daemon.lisp
    • or start-stop-daemon
    • or just run it like "( sbcl --script my-launcher.lisp & )"
  • or run it under a virtual terminal manager, such as "tmux" or "screen"

Unless you obtain a port number, you may combine Restas with FastCGI, or buy VPS, or learn how to use PaaS, such as Heroku or OpenShift. PaaS is straightforward when it comes to updating your application or ensuring that it's running, whereas other options give you choices and responsibility.

André Miranda Moreira

unread,
Mar 5, 2014, 8:14:47 PM3/5/14
to res...@googlegroups.com
That's true, Hostgator really gives you SSH access, but I believe that the best option will be to buy a VPS. I have considered PaaS, but chose initially to tackle Hostgator because my peer already has an account and gave me access for free =]

That was a really complete answer!

Thank you very much, it was really helpful.


--
You received this message because you are subscribed to a topic in the Google Groups "restas" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/restas/3ClRJYbROcQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to restas+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages