Bye bye vagrant welcome localhost….
Last few days I’ve spent on cinfiguring rails 5.1 and webpack – well totally wasted time, if you use vagrant and want to have live reload with webpack (on vagrant), then prepare your self for a battle – I used vagrant to have independent development environment, I’ve installed bunch of software as mysq, pgsql, redis, rvm, many rubies – main goal – to avoid messing with my OS, and have „production” environment. I remember when…. 10 – 15 years ago I had same battle with windows and configuring dev env for sites – like wamp (but those days it wasn’t as ease as just install the wamp)… anyhow I’m using mac os, have brew so why I waste time for vagrant? Have to use both of OS, also waste time and resources (cpu/ram/ssd) to have both machines running – so f* it, finally – I’m moving to have everything on localhost, 13gb of vagrant is really wast of everything – of course big respect for guys who created vagrant, it was good time, now its time to move on.. so how to configure mac os to have good development env.
I’ve forked gr8 tutorial to configure mac os: https://github.com/rafath/mac-dev-setup
so gem install rails cause the problem witl libxml2 and nokogiri
try to install xcode additional tool
gem install nokogiri
ok next postgresql
brew install postgres
brew tap homebrew/services
brew services start postgresql
and next add postgres to autostart
mkdir -p ~/Library/LaunchAgents
ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
brew install gnupg
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
\curl -sSL https://get.rvm.io | bash -s stable --ruby
after that restart terminal or read what rvm said
for php, my friend suggested mamp, so when I need it I’ll give a try, so now I’ll focus on ruby and react, however I’ll stay with separate projects – ruby backend as api and reactjs as frontend – will have more possibilities be independent :).