Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What files go in grails-app/assets versus web-app

Tags:

grails

I am just getting started with Grails and trying to understand when to put files in grails-app/assets/{stylesheets|images|javascript} versus putting things in web-app/{css|images|js}.

like image 952
Rob Avatar asked Jun 06 '14 12:06

Rob


People also ask

What is asset pipeline in rails?

1 What is the Asset Pipeline? The asset pipeline provides a framework to concatenate and minify or compress JavaScript and CSS assets. It also adds the ability to write these assets in other languages and pre-processors such as CoffeeScript, Sass, and ERB.

How do you build grails app?

Go to start.grails.org and use the Grails Application Forge to generate your Grails project. You can choose your project type (Application or Plugin), pick a version of Grails, and choose a Profile - then click "Generate Project" to download a ZIP file. No Grails installation necessary!

How do you run grails project?

Running a Grails Application Using run-appGo to the application directory. For example, go to the as-install /grails/samples/helloworld directory. Run the grails run-app command. The grails run-app command starts the Enterprise Server in the background and runs the application in one step.


1 Answers

In short, if you want your front-end resources to be managed by the Asset Pipeline plugin, you should put them in grails-app/assets. If you don't, you should put them under web-app.

like image 113
Dónal Avatar answered Oct 16 '22 13:10

Dónal