我已经在Mac上下载并安装了Magento 1.9.x以及样本数据。
我在主机文件中添加了一个条目,如下所示:
127.0.0.1 local.magento.test
在httpd-vhosts.conf中,我有到web根集的路径:
DocumentRoot "/Library/WebServer/Documents/vhosts/magento.test/httpdocs"
ServerName local.magento.test
我得到403说
服务器无法读取htaccess文件,拒绝访问是安全的
如果我查看apache错误日志,它似乎正在尝试从magento.test目录中读取.htaccess文件,而不是httpdocs
Permission denied: ... /Library/WebServer/Documents/vhosts/magento.test/.htaccess
非常感谢任何想法或建议
答案 0 :(得分:1)
import (
gcm "github.com/google/go-gcm"
)
[...]
res, err := gcm.SendHttp(apiKey, gcm.HttpMessage{
// `destination` is the subscription endpoint provided by
// serviceWorkerRegistration.pushManager.subscribe callback.
RegistrationIds: []string{destination},
ContentAvailable: true,
TimeToLive: &ttl,
// This shows up when chrome is not open only. wut?
Notification: &gcm.Notification{
Title: `Title here`,
Body: "Blah blah lorem ipsum",
Sound: "default",
Color: "#ff0000",
//ClickAction: "something here?",
},
})