• If chromedriver is all that you needed:

    brew cask install chromedriver

    Looks like this can consolidate to something like:

    cd codeandsupply.co
    gem install bundler
    (command -v brew && brew upgrade) || /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
    brew install rbenv readline openssl postgresql graphviz npm
    brew cask install chromedriver
    rbenv init
    
    cat << EOF >> ~/.zshrc # or ~/.bashrc or ~/.bash_profile
    READLINE_PREFIX="$(brew --prefix readline)"
    OPENSSL_PREFIX="$(brew --prefix openssl@1.1)"
    export LDFLAGS="-L${READLINE_PREFIX}/lib"
    export CPPFLAGS="-I${READLINE_PREFIX}/include"
    export PKG_CONFIG_PATH="${READLINE_PREFIX}/lib/pkgconfig"
    export PATH="${OPENSSL_PREFIX}/bin:$PATH"
    
    
    # Ruby config
    export RUBY_CONFIGURE_OPTS="'--with-openssl-dir=${OPENSSL_PREFIX}'"
    eval "$(rbenv init -)"
    EOF
    
    rbenv install $(cat .ruby-version | sed -e 's/-/ /' | awk '{print $2}')
    bundle install

    Maybe do some initial pg setup with

    psql postgres

    Then continue:

    bundle exec rails db:setup
    bundle exec rails db:migrate
    bundle exec rails db:seed
    bundle exec cucumber
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment