added first version of wix integration

main
Nilo Roberto C Paim 2023-10-15 09:20:58 -03:00
parent 29cc6e71ab
commit 9f7b29c1ec
6 changed files with 6 additions and 22 deletions

View File

@ -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)

View File

@ -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
}
}

View File

@ -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]

View File

@ -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]

View File

@ -1,4 +0,0 @@
service apihomolog stop
cp /home/ftpuser/ftp/files/api /root/api-homolog
chmod 777 api
service apihomolog start

View File

@ -1,4 +0,0 @@
service api stop
cp /home/ftpuser/ftp/files/api /root/api
chmod 777 /root/api/api
service api start