Skip to content

Instantly share code, notes, and snippets.

@hahwul
Last active December 21, 2024 14:40
Show Gist options
  • Save hahwul/d491a9a53628cb69f4fbb6b84cd6ca87 to your computer and use it in GitHub Desktop.
Save hahwul/d491a9a53628cb69f4fbb6b84cd6ca87 to your computer and use it in GitHub Desktop.
Bonny
# RVM
\curl -sSL https://get.rvm.io | bash
# Ruby
rvm install ruby-3.3.6
rvm use ruby-3.3.6
# Rails
gem install rails
# New project
rails new blog
# -d, [--database=DATABASE]
# mysql/postgresql/sqlite3/oracle/sqlserver/jdbcmysql/jdbcsqlite3/jdbcpostgresql/jdbc
# -c, [--css=CSS]
# tailwind, bootstrap, bulma, postcss, sass
# Run
cd blog
bundle install # if you not installed bundler, try to 'gem install bundler'
./bin/dev
brew uninstall --ignore-dependencies openssl
brew install openssl@3
export LDFLAGS="-L/opt/homebrew/opt/openssl@3/lib"
export CPPFLAGS="-I/opt/homebrew/opt/openssl@3/include"
export PKG_CONFIG_PATH="/opt/homebrew/opt/openssl@3/lib/pkgconfig"
rvm autolibs disable
rvm reinstall 3.3.6 --with-openssl-dir=$(brew --prefix openssl@3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment