GhostWording / gw-web-app

Web Application
0 stars 0 forks source link

Its looks like images are not being served from the asset directory that resides on the CDN #7

Open OlivierBourdin opened 10 years ago

OlivierBourdin commented 10 years ago

Oh really? I'll take a look.

samkuhn commented 10 years ago

The build process seems to be working fine.

I think this is to do with the way we are deploying to the CDN:

  1. Make a release build
  2. Upload the release build to the hosting
  3. Wait an hour or so.. (for it to be cached to the CDN)
  4. Make a deploy build
  5. Upload the deploy build to the hosting

(Is that correct Olivier?)

Step (4) creates a new app-hash.js in /assets which has the ./asset paths rewritten to point to the correct asset on the CDN. But that file does not seem to be being uploaded to the CDN in step (5) (it appears to be still using app-hash.js from step (1))

Really, this deployment strategy is a bit hairy! maybe we should talk it over with Rui on a hangout?

OlivierBourdin commented 10 years ago

Thanks for looking. I'll try deploying again when I'm back in London. The deploy process can certainly be improved. For the time being, if its good enough, I'd rather try to get a couple of simple apps out as soon as possible. It could also provide useful hints on the most flexible build/deploy processes in our situation.