GithubHelp home page GithubHelp logo

isucon-5-qual-app's Introduction

環境

go version go1.5 linux/amd64

Goの実行環境は /home/isucon/.local/go/ にインストールされています。

イメージ起動時点では

GOROOT=/home/isucon/.local/go
GOPATH=/home/isucon/webapp/go

となっています。

/home/isucon/webapp/go 以下のディレクトリ構成は変則ですが、app.go はディレクトリ直下にあります。 各種ライブラリは通常通り src 以下にあります。

ビルド

systemd の初期設定では /home/isucon/webapp/go/app を起動するようになっています。 このため、app という名前の実行ファイルをビルドする必要があります。

go build -o app

もちろん、systemd側の設定を変更して、好きな名前の実行ファイルを使うことも可能です。

実行

Goアプリはsystemdに登録されており、systemdのコマンドで起動や停止が出来ます。

sudo systemctl start isuxi.go
sudo systemctl stop isuxi.go

パラメータ等はsystemdのファイル /etc/systemd/system/isuxi.go.service を参照してください。

イメージ起動時点ではRubyが起動しているので、先にRubyの停止をしないとGoが起動しません

isucon-5-qual-app's People

Contributors

gky360 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.