added first version of wix integration
parent
29cc6e71ab
commit
9f7b29c1ec
|
|
@ -183,12 +183,14 @@ func GetAllUsers(c *fiber.Ctx) error {
|
|||
}
|
||||
|
||||
func WixIntegration(c *fiber.Ctx) error {
|
||||
var data map[string]string
|
||||
var data map[string]interface{}
|
||||
|
||||
if err := c.BodyParser(&data); err != nil {
|
||||
return fiber.ErrBadRequest
|
||||
}
|
||||
|
||||
log.Printf("====================> Data from WIX: %v\n", data)
|
||||
|
||||
utils.PrettyPrintJson(data)
|
||||
|
||||
return c.JSON(data)
|
||||
|
|
|
|||
|
|
@ -1,8 +0,0 @@
|
|||
http://www.pcastt.com.br, http://pcastt.com.br, https://www.pcastt.com.br, https://pcastt.com.br {
|
||||
root * /root/sites/pcastt
|
||||
file_server
|
||||
|
||||
handle_path /api/* {
|
||||
reverse_proxy localhost:8111
|
||||
}
|
||||
}
|
||||
|
|
@ -4,8 +4,7 @@ After=multi-user.target
|
|||
|
||||
[Service]
|
||||
WorkingDirectory=/root/api
|
||||
# RootDirectory=/root/api-homolog
|
||||
ExecStart=/root/api/api
|
||||
ExecStart=/root/api/api prod
|
||||
Type=simple
|
||||
|
||||
[Install]
|
||||
|
|
|
|||
|
|
@ -3,9 +3,8 @@ Description=Pcast Homolog API
|
|||
After=multi-user.target
|
||||
|
||||
[Service]
|
||||
WorkingDirectory=/root/api-homolog
|
||||
# RootDirectory=/root/api-homolog
|
||||
ExecStart=/root/api-homolog/api
|
||||
WorkingDirectory=/root/api
|
||||
ExecStart=/root/api/api homolog
|
||||
Type=simple
|
||||
|
||||
[Install]
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
service apihomolog stop
|
||||
cp /home/ftpuser/ftp/files/api /root/api-homolog
|
||||
chmod 777 api
|
||||
service apihomolog start
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
service api stop
|
||||
cp /home/ftpuser/ftp/files/api /root/api
|
||||
chmod 777 /root/api/api
|
||||
service api start
|
||||
Loading…
Reference in New Issue