phpMick's avatar
Level 15

Elixir - how to put live?

Hey,

Just about to put an application live, which uses Elixir.

Do I just gulp --production then push the files it produces to GIT, then pull down on live?

Do I need to add rev-manifest.json as well, I am versioning my assets so I guess something is needed to point to the correct filename?

Mick

0 likes
3 replies
WebKenth's avatar

gulp --production will do your tasks and minify the output

Simply commit the files and push them after running this command

If you are using version() you should be referencing the files with elixir('app.js'); and it will append the correct hash no need for you to do any additional work

phpMick's avatar
Level 15

What is the manifest for then? It looks like it maps the filenames to the hashed names?

Mick

phpMick's avatar
phpMick
OP
Best Answer
Level 15

Just tried it and I get this error:

File css/all.css not defined in asset manifest. (View:

I have added the manifest to git, pushed and pulled and it has fixed the error.

So, the answers is yes, you do need the rev-manifest.json.

:-)

Luckily I did this on a test folder, so my users weren't affected.

Mick

Please or to participate in this conversation.