CSS File Not Updating on Deploy (Google AppEngine)

后端 未结 12 1853
既然无缘
既然无缘 2020-12-09 03:39

I pushed a new version of my website, but now the CSS and static images are not deploying properly.

Here is the messed up page: http://www.gaiagps.com

Appeng

12条回答
  •  独厮守ぢ
    2020-12-09 04:05

    Following is what has worked for me.

    1. Serve your css file from the static domain. This is automatically created by GAE.

      //static.{your-app-id}.appspot.com/{css-file-path}

    2. Deploy your application. At this point your app will be broken.

    3. change the version of the css file

      //static.{your-app-id}.appspot.com/{css-file-path}?v={version-Name}

    4. deploy again.

    Every time you change the css file. you will have to repeat 2,3 and 4.

提交回复
热议问题