Site not building suddenly
-
I can't tell if it's a DNS issue (already tried purging Cloudflare cache + re-syncing DNS from Cloudron) or a git issue but suddenly my github pages app will not update with my git repo.
In the logs of my newest app attempt:
Listening on port 3000 Using git repo at /app/data/repo.git Serving up directory /app/data/website git: info {} git: push {} Error: ENOENT: no such file or directory, stat '/app/data/website/404.html' Error: ENOENT: no such file or directory, stat '/app/data/website/404.html' Error: ENOENT: no such file or directory, stat '/app/data/website/404.html'
and on and on that error goes...
This is a static HTML site that was working just fine before it stopped working.
Any clues?
-
@jordanurbs have you checked in the File Manager or Terminal if that file path still exists? Permissions?
-
@jordanurbs Does it work if you create an empty 404.html file as the error suggests?
-
@girish I created a 404.html both in the file manager and in the git repo---nothing.
@robi checked I took a look in the file manager & terminal and there were no clues as to why the repo was there but the files were not
I did find a workable solution: I ended up cloning the repo into /app/data/ and then renaming the directory to 'website' and now it's live again.
I seem to have to pull manually from the app's terminal though, and can't just push to the 'page' remote from my local machine. Is there a git command I can use in the /app/data/website directory to have it stay synced to the 'page' remote like the cloudron app should be doing anyway?