Mountain Lionの中に入ってるApacheとPHPを有効化しつつ、Homebrewを使ってMySQLをインストールするまで
※XcodeとCommand Line Toolsぐらいは入れておかないとだめなはず
システム環境設定から消えてるので以下のコマンドでApache起動
sudo apachectl start
| server { | |
| listen 80 default; | |
| server_name _; | |
| root /path/to/wordpress; | |
| index index.html index.htm; | |
| charset utf-8; | |
| access_log /var/log/nginx/access.log main; | |
| error_log /var/log/nginx/error.log; |
| # Numerous always-ignore extensions | |
| *~ | |
| *.diff | |
| *.err | |
| *.orig | |
| *.log | |
| *.rej | |
| *.swo | |
| *.swp | |
| *.zip |
| { | |
| "files": | |
| { | |
| "Chart.js": "https://github.com/nnnick/Chart.js", | |
| "Modernizr.js": "http://modernizr.com/downloads/modernizr-latest.js", | |
| "Normalize.css 1.x": "https://github.com/necolas/normalize.css/blob/v1.1.3/normalize.css", | |
| "Normalize.css 2.x": "https://github.com/necolas/normalize.css/blob/v2.1.3/normalize.css", | |
| "Normalize.css 3.x": "https://raw.githubusercontent.com/necolas/normalize.css/master/normalize.css", | |
| "Respond.js": "https://github.com/scottjehl/Respond/blob/master/dest/respond.min.js", | |
| "Sanitize.css": "https://raw.github.com/ZDroid/sanitize.css/master/sanitize.css", |
HomebrewでphpMyAdminを入れる方法
※OS Xの中のApacheとPHPを動かして、MySQLをHomebrewで入れてる前提
それがまだなら、まずは以下を
Apache+PHP+MySQL(Homebrew) on Mountain Lion https://gist.github.com/3806975
http://dean.io/blog/setting-up-a-ruby-on-rails-development-environment-on-mountain-lion
こちらの手順を参考にRVMの前までは準備をしておく
RVMは、そのまんまRubyのバージョンマネージャー。詳しいことは以下を
RVM: Ruby Version Manager - RVM Ruby Version Manager - Documentation(http://rvm.io/)
| { | |
| "caret_style": "blink", | |
| "color_scheme": "Packages/Theme - Refined/Color Schemes/Tomorrow Night Refined.tmTheme", | |
| "font_face": "フォント名", | |
| "font_size": 12.0, | |
| "ignored_packages": | |
| [ | |
| "パッケージ名" | |
| ], | |
| "tab_completion": true, |
| // for OS X | |
| // Put this file into Sublime Text 2 Packages 'User' directory, and restart ST2. | |
| { | |
| "path": "/usr/local/bin", | |
| "cmd": ["pandoc", "-S", "-s", "-f", "html", "-t", "markdown", "-o", "$file_path/$file_base_name.md", "$file"], | |
| "working_dir": "$file_path", | |
| "selector": ["source.text", "source.html"] | |
| } |
| // for OS X | |
| // Put this file into Sublime Text 2 Packages 'User' directory, and restart ST2. | |
| { | |
| "path": "/usr/local/bin", | |
| "cmd": ["pandoc", "-S", "-s", "-f", "markdown", "-t", "html5", "-o", "$file_path/$file_base_name.html", "$file"], | |
| "working_dir": "$file_path", | |
| "selector": ["source.md", "source.markdown"] | |
| } |
まずはRubyをインストールしないことにははじまりません。OS Xの場合は、システム内にRubyが入ってますが、ちょっと古かったりするのでRVMで入れておくと良いでしょう。Ruby On Railsの環境の作り方は下記にあるので参考にどうぞ。
→ Setting up a Ruby On Rails environment on Mountain Lion
$ gem update --system
Latest version currently installed. Aborting.
$ gem install compass