Closed ZhenguoYang closed 11 years ago
what no
Look up releases. Almost all examples use them now, and the getting started chapter of the guide also shows them (look at the version that's on github, not on the website).
@essen
I can find the getting started chapter in https://github.com/extend/cowboy/blob/master/guide/getting_started.md
what are the releases you mentioned?
Thanks in advance.
@essen
I just saw it. In examples folder, you replaced rebar with relx.
Hi @dvv @essen
If ssh connection effects session running erlang, there will be the same result for the release built by relx.
Btw, how to upgrade a go production server? I can't find related document on relx.
Thanks in advance.
No releases can run in the background just fine.
Zhenguo Yang notifications@github.com wrote:
Hi @dvv @essen
If ssh connection effects session running erlang, there will be the same result for the release built by relx.
Btw, how to upgrade a go production server? I can't find related document on relx.
Thanks in advance.
— Reply to this email directly or view it on GitHub.
Hi @essen,
Thanks. What my imagination is that:
Can we do that? Any suggestion?
Thanks in advance.
Hi @ZhenguoYang.
When you create release with relx it add scripts for start, stop, attach and etc.
In release directory exists bin/
cd github/cowboy/examples/hello_world
make
cd _rel
bin/hello_world_example start
<exists http://localhost:8080>
bin/hello_world_example stop
<don't exists http://localhost:8080>
Hi @nevar ,
Cool, thanks a lot.
One more question.
If I used mnesia in my application, I need to figure out the db path when starting the server. e.g.
erl -pa ebin deps/*/ebin -mnesia dir '"db"'
How to handle it in relx?
Thanks in advance.
You have choise:
bash bin/hello_world_example start -mnesia dir '"db"'
vm.arg
and sys.config
for configure erlang and it application.
If you're interested I can answer in more detail via email.Hi @nevar,
Thanks a lot.
Yes, I am interested in it.
Thanks in advance.
I'm also interested in using vm.arg and sys.config to configure mnesia for use in an app. Could you let me know the steps please ? (I think I need to have [{mnesia, [{dir, "/home/x/data/"}]}]. in my rel/sys.config; what do I need to have in vm.arg?) Thanks in advance
Shouldn't need anything in vm.args.
Please don't ask questions on old tickets.
OK thanks, sorry about the question on a closed ticket, got googled here and didn't want to opena new one ...
It is not an issue.
As a rookie, If I have a web server developed on cowboy to deploy, how to do that?
My steps are:
However, I found the server will stop after a while.
And then, I found -detached can let the server run all the time.
My question is, How to deploy and hot upgrade (mantaince) a cowboy based http server remotely? Any sample?
Thanks in advance