More Related Content Similar to PhpStormとGrunt.jsで作るCakePHP快適開発環境 Similar to PhpStormとGrunt.jsで作るCakePHP快適開発環境 (20) PhpStormとGrunt.jsで作るCakePHP快適開発環境 10. Gruntfile.js 設定例
module.exports = function(grunt) {
grunt.initConfig({
xxxxxx: {
//.........
}
});
grunt.loadNpmTasks('grunt-contrib-xxxxxx');
grunt.registerTask('default', ['xxxxxx']);
};
13年7月18日木曜日
18. PHP でサーバ起動
$ php -S localhost:3000
-c /usr/local/etc/php/5.4/php.ini
-t app/webroot
13年7月18日木曜日
19. PHP でサーバ起動
• -S
<addr>:<port> Run with built-in web server.
• -c
<path>¦<file> Look for php.ini file in this
directory
• -t
<docroot> Specify document root
<docroot> for built-in web server.
13年7月18日木曜日
20. Grunt 実行
$ grunt [server]
※ Gruntfile.js(Gruntfile.coffee)と
同階層ディレクトリで実行
13年7月18日木曜日
24. Php Storm $PATH設定
$ vim /Applications/Phpstorm.app/
Contents/Info.plist
$ vim /Applications/Webstorm.app/
Contents/Info.plist
PhpStorm
WebStorm
13年7月18日木曜日
26. Php Storm $PATH設定
$ /System/Library/Frameworks/
CoreServices.framework/Frameworks/
LaunchServices.framework/Support/
lsregister -v -f /Applications/
PhpStorm.app
Via. http://ify.io/getting-webstorm-external-tools-to-work-on-webstorm-on-osx/
13年7月18日木曜日