Skip to content

gnue/httprism

Repository files navigation

httprism

Installation

$ go install github.com/gnue/httprism/cmd/httprism@latest

Usage

httprism [OPTIONS] <command>

Application Options:
  -c, --config=FILE    config file

Help Options:
  -h, --help           Show this help message

Available commands:
  cleanup    clean up invalid symbolic link
  config     print config
  domains    print domains
  down       disable
  env        print config
  host       updates hosts file to map domains to 127.0.0.1 [deprecated]
  install    install files
  kill       kill app
  link       link app
  list       list apps
  logs       tails log in app
  open       open app
  ps         list apps
  restart    restart app
  server     server commands
  unhost     removes domains from hostfile [deprecated]
  uninstall  uninstall files
  unlink     unlink app
  up         enable
  version    show version

Getting Started

必要なファイルをインストールする

$ httprism install

設定ファイルの編集

設定ファイル(config.toml) の編集

$ httprism config —-edit

Webサービスの登録

Webサービスのリンク

$ cd /path/to/myapp
$ httprism link     // myapp.[DOMAIN名] が登録される
$ httprism open     // myapp.[DOMAIN名] でブラウザがオープンされる

プロキシーサーバの起動

OS のシステムサービスに登録されるので管理者のパスワード入力が必要

プロキシーサーバの起動

$ httprism up
  • macOS では launchd に登録されてサービスが起動される
  • Linux では systemd に登録されてサービスが起動される

プロキシーサーバの停止

OS のシステムサービスから削除されるので管理者のパスワード入力が必要

プロキシーサーバの停止

$ httprism down
  • macOS では launchd に登録されているサービスが取り除かれる
  • Linux では systemd に登録されているサービスが取り除かれる

Author

gnue

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published