Home Upload assets to Nginx as CDN when create a war [GRAILS]
Reply: 0

Upload assets to Nginx as CDN when create a war [GRAILS]

Alex
1#
Alex Published in 2016-12-16 13:52:10Z

I want implement a CDN for statics from my web-app (css/js/img) and I use Nginx server as CDN, but I dont known how to upload assets to the server when I start create the ".war"

I use groovy/grails and the "cdn-assets-pipeline" plugin dont work becasue it is only for S3 or CloudFront amazon providers, and i want use nginx server.

I think that use the event "eventCreateWarStart" on _Events.groovy may be a good idea, but how upload files to nginx server?

eventCreateWarStart = { name, stageDir ->
    grailsConsole.log('starting war!') 
}

Can you help me?

Thanks and sorry for my english!

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.317772 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO