LoginSignup
2
2

More than 5 years have passed since last update.

Engine Yardでgulpをつかう

Last updated at Posted at 2015-04-01

CssやJSのcompileなど、clientサイドの加工にgulpを使うのが便利です。
gulpを、deploy時にも、実行できるようにする方法を紹介します。

1. Custom Chefで、Nodejsのversionをあげる

Chefについて、使い方はこちら
https://support.cloud.engineyard.com/forums/22944266?locale=63

2. gulpfile.js を用意する

https://github.com/gulpjs/gulp/blob/master/docs/getting-started.md
を参照して使う。

3. Deploy Hookで、gulpをける

PHPの場合、at deploy/before_symlink.rb
Rubyの場合 assets compileの絡みで、設計が必要

sudo "eselect nodejs set 0.10.30"
run "npm install gulp"
run "gulp"
2
2
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2