我正尝试在 Linux 机器上在 GitHub 上托管我的 WordPress 网站 使用 Apache2 和 MySQL。
在 GitHub 上:
created repo > username/username.github.io
在 WordPress 上:
'using simply static plugin' simply static plugin settings > general Destination URLs > username.github.io Dir methon : local dir local dir : /var/www/html/static/ (full permission chmod 777)
simply static pluginsettings > include/excule Additional Files and Directories : /var/www/html/wordpress/wp-content/themes/zerif-lite/ /var/www/html/wordpress/wp-content/uploads/ theme name : zerif-lite
Linux 终端:
git init git add -a
git commit -m "first commit"
git remote add origin https://github.com/username/username.io.git
git push -u origin master : creds
但在 GitHub 页面上显示:
404 site not found
这里没有 GitHub Pages 站点。
最佳答案
git push -u origin master : creds
看起来很可疑
简单地尝试 git push -u origin master
,并确保 configure your publication branch for your GitHub pages repository .
关于html - 上传WordPress静态HTML站点后GitHub上显示404错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57319631/