My scenario is this, again: on an Economy account (4-5$/month), is Go viable?
I mean, net/http proxy seems like the logical choice, but what are the dependencies, if any, or the special rights needed, if any?
I was merely mentioning the cheap hosting plan to send the proper message about my intentions: target clients with cheap hosting accounts on third party hosting servers like FatCow. As you know, there are limitations to what you can do with these accounts, files, environments etcetera.
So, again, is Go viable as a backend app in this case? How exactly.
Actually, I do have experience on the server side. It seems your not familiar with third party web hosting plans and policies.
OK. Maybe someone else has more insight to this particular problem.
I thought I try here too, maybe there were some other more Go experienced folks tackle this one ahead.
And what I'm trying to say is that maybe someone else involved with Go has gone through all of this and knows to give me a tried, real world answer :)
It would be interesting to build a sandboxed (like the playground) Go environment for hosting providers though. The risks are high though.
The answer is no. On an average hostgator-style hosting account there's no way you'll get to run native code.It would be interesting to build a sandboxed (like the playground) Go environment for hosting providers though. The risks are high though.
On Friday, November 2, 2012 2:51:36 AM UTC+2, bryanturley wrote:I think he is going to ask it till he gets the answer he wants, denying reality all the way.
Simple question:
Can I use Go (exes) with an existing Apache sever to serve dynamic content?
For clarity, assume the scenario of a hosted website on a random host service, and no net/http package being used to start a Go http server.
A tutorial maybe, a real world example, that would be nice.
Thanks.
On Friday, November 2, 2012 9:20:22 AM UTC+2, mattn wrote:use CGI or uWSGI
On Friday, November 2, 2012 3:37:09 PM UTC+2, André Moraes wrote:
If you can configure your apache to use FCGI protocol, Go has a
package in stdlib that can be used.
Just check:
http://golang.org/pkg/net/http/fcgi/
It works almost the same way that net/http works but uses FCGI instead of HTTP.
On Fri, Nov 2, 2012 at 6:35 AM, Dumitru Ungureanu <itmi...@gmail.com> wrote:
> You seem to be finding a way to turn the conversation into personal attacks
I agree. The question is totally fine, and there's no reason to be
unfriendly like that. This is also the right forum for asking it.
import (
"os"
)
func main() {
os.Stdout.WriteString("Content-Type: text/html;charset=utf-8\n\n")
os.Stdout.WriteString("<h1>Hello, 世界</h1>")
}
compile it to hello.cgi,
If you have a more elaborate *technical* answer, a real life example, I certainly would appreciate that.
Perhaps I failed to understand what technical answers you're seeking. This is the exact question you asked:"on an Economy account (4-5$/month), is Go viable?"
On Thursday, November 1, 2012 8:52:45 PM UTC+2, Dumitru Ungureanu wrote:Simple question:
Can I use Go (exes) with an existing Apache sever to serve dynamic content?
Simple question:
Can I use Go (exes) with an existing Apache sever to serve dynamic content?
For clarity, assume the scenario of a hosted website on a random host service, and no net/http package being used to start a Go http server.
A tutorial maybe, a real world example, that would be nice.
Thanks.
--
cPanel is just an interface to help the user, it doesn't add or subtract from the user's rights. The main discussion is and started off from a hosted environment point of view.
As Ivan explained, that if the host is willing to do for Go the same thing it does for PHP, for example, than, with those restrictive right of a shared hosting environments, the user can go on deploying Go-based apps without demanding or needing anything special from sysadmins.--
So we're back to my original question, but in your words: which providers can I use?
In my words: since the accounts are pretty much standard, what type of account is the minimum for a Go backend? CGI is clear. FastCGI or other alternatives I'm not clear yet. Real world implementations would be nice.
"I don't think I have ever seen a $5 plan at any provider that does allow native binaries,"
The main culprit is here: you ask how do you upload the code. But with go, you have to be able to upload the compiled binary!
This is not what a very cheap web hosting provider allows...
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.