FAQ
Hi list.

I added new program "gost" in my repo.

https://github.com/mattn/gost

This is a small program that can deploy web service with github push. When
this web application receive github push, it run following tasks.

1. Stop an updated service via goreman's RPC.
   This service should be run via goreman.
   See: https://github.com/mattn/goreman

2. Run command like git pull
   So you should specify git repo as http:// scheme not git@.

3. Start a service

For example:

Procfile
---
web1: bundle exec ruby web.rb
gost: gost -c gost.json
gorem: gorem -c gorem.json
---

gorem.json
---
{
   "mattn": {
     "address": "127.0.0.1:80",
     "entries": {
       { "path": "/deploy/", "backend": "127.0.0.1:8100" },
       { "path": "/app1/", "backend": "127.0.0.1:8101" },
     }
   }
}
---
# You can change port of gorem to nginx upstream.

gost.json
---
{
   "addr": "127.0.0.1:8100",
   "apps": {
     "web1": {
       "proc": "my-ruby-app",
       "path": "/home/mattn/dev/my-ruby-app/"
     }
   }
}
---

At the last, you must add webhook for the repository of my-ruby-app on
github. You can deploy it with github push.

Thanks.

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
categoriesgo
postedMay 21, '13 at 1:23p
activeMay 21, '13 at 1:23p
posts1
users1
websitegolang.org

1 user in discussion

Mattn: 1 post

People

Translate

site design / logo © 2021 Grokbase