浏览代码

using production config

master
patrick 5 年前
父节点
当前提交
cc1128c24c
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. +6
    -6
      main.go

+ 6
- 6
main.go 查看文件

@@ -9,8 +9,8 @@ import (
)

func main() {
//readConfig()
readConfigForTest()
readConfig()
//readConfigForTest()
db.h = nil //make sure it's in proper state.

filename := "rpn.superforex." + time.Now().Format("20060102150406") + ".log"
@@ -23,10 +23,10 @@ func main() {
log.Println("Server started on: http://localhost:8080")

//setup http handler
http.HandleFunc("/choosePayment", choosePayment)
http.HandleFunc("/rpnNameAndCard", rpnNameAndCard)
http.HandleFunc("/rpn_notify", rpnNotify) //called by rpn
fs := wrapHandler(http.FileServer(http.Dir("./PG")))
http.HandleFunc("/rpnNameAndCard", rpnNameAndCard) //ask name and card no
http.HandleFunc("/rpn_notify", rpnNotify) //called by rpn
http.HandleFunc("/alipay", leanworkInFAT) // leanwork in
fs := wrapHandler(http.FileServer(http.Dir("./PG"))) //leanwork P2P embeded in
http.HandleFunc("/", fs)
http.ListenAndServe(":8080", nil)


正在加载...
取消
保存