Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
When in Development Mode: Saved Changes to Ghost Theme Do Not Appear on Refresh #56
I am currently running the official 0.11.3 ghost image on my local OSx machine.
I am running only the official ghost image with no proxies etc and mapping my theme folder and config file into the container using volumes. Everything works, but Ghost acts like it's in production mode even though it says it is in development mode on startup.
I am passing NODE_ENV = development as an environmental variable and using a Ghost config.js file that DOES NOT have a production server / host block (ie. it would error out if NODE_ENV was anything other than "development")
I am able to access the blog / theme and everything runs properly in my browser EXCEPT when I make a change to my Theme files. That change is then not reflected when I refresh my browser.
Further, if I restart my Ghost container, the change is still not visible even after waiting for the container to restart and again reloading the page. In order to see the changes visible I have to kill the current container and spin up a new one.
On start up Ghost indicates:
Starting Ghost using DEVELOPMENT config... :) #added echo in my config file
and then finally....
At some point I had all of this working in the distant past.
Steps taken to trouble shoot thus Far
#1. Add a line to config file to echo the current NODE_ENV value,
I am not using VirtualBox so some of the issues related to volumes and sendfile are probably not relevant.
I am on MacOS using Docker for Mac 1.12.3, with the latest version of the ghost image from docker hub. I am using a remote mysql db and my fingers are bleeding from two days of googling around for trouble shooting ideas, hopefully you guys have some.