Skip to content

Instantly share code, notes, and snippets.

@alissonviegas
alissonviegas / bin_dev.sh
Last active August 26, 2022 14:23
/usr/bin/env: ‘bash\r’: No such file or directory
sed -i 's/\r$//' bin/bundle bin/dev bin/rails bin/rake bin/rspec bin/setup bin/spring
bundle show <gem_name>
@alissonviegas
alissonviegas / git-autocorrect
Last active June 28, 2022 18:31
Make git autocorrect
git config --global help.autocorrect 1
@alissonviegas
alissonviegas / rails7
Last active June 28, 2022 18:30
Create Rails 7 app
rails new <project-name> -j esbuild --css bootstrap -d postgresql
yarn build && yarn build:css
@alissonviegas
alissonviegas / development.rb
Last active June 28, 2022 18:26
Rails host lvh.me
# config/environments/development.rb
config.hosts << ".lvh.me"
@alissonviegas
alissonviegas / environment.md
Last active October 19, 2022 18:19
Preparando o ambiente (pt-BR)

Preparação do ambiente de desenvolvimento das stacks utilizadas neste projeto.

Fonte: https://gorails.com/setup/ubuntu

Ruby on Rails

Instalando dependências:

sudo apt install curl
curl -sL https://deb.nodesource.com/setup_lts.x | sudo -E bash -