https://github.com/pyk/automata
REST API server for curhat app project
https://github.com/pyk/automata
Last synced: 11 months ago
JSON representation
REST API server for curhat app project
- Host: GitHub
- URL: https://github.com/pyk/automata
- Owner: pyk
- License: mit
- Created: 2014-11-15T10:19:02.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-03-27T07:46:05.000Z (about 11 years ago)
- Last Synced: 2025-04-02T00:41:38.771Z (about 1 year ago)
- Language: Go
- Size: 184 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# automata
REST API server for curhat app project.
## Building a service
$ docker build -t bayu/automata:v0 .
## Running a service
database service named `postgres` must running first.
$ docker run -d --env-file="data.env" --name automata --link postgres:database bayu/automata:v0
## Deploy to heroku
create new apps first
$ heroku create -b https://github.com/kr/heroku-buildpack-go.git
make sure `godep` already installed, then checkout
a new branch every deploy apps to heroku.
$ git checkout -b heroku-$VERSION dev
$ echo 'web: automata' > Procfile
$ godep save
$ git add Godeps/ Procfile && git commit -m "deploy to heroku"
$ git push heroku heroku-$VERSION:master -f
## Manage database on heroku
requirements : `psql`
Connect to heroku database instance
$ heroku pg:psql --app APP_NAMR DATABASE_URL