- install rails webpacker 6
- add 'runtime' to javascript_pack_tag in dummy views, without that the entire javascript will not be executed
- [optional] set app source to the engine app packs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt update | |
sudo apt install git zsh | |
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
sh -c "$(curl -fsSL https://starship.rs/install.sh)" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
files_to_watch=$@ | |
file_to_run=$1 | |
inotifywait -e close_write $files_to_watch -m | while read file _event; do bundle exec ruby $file_to_run; done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
yarn add \ | |
imports-loader \ | |
jquery \ | |
datatables.net \ | |
datatables.net-bs4 \ | |
datatables.net-responsive \ | |
datatables.net-responsive-bs4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mv spec/dummy/spec/{rails_helper,spec_helper}.rb spec/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# simplified version of https://www.techiediaries.com/install-ruby-2-7-rails-6-ubuntu-20-04/ | |
# | |
# make sure you have install all requisite libraries | |
# see https://github.com/rbenv/ruby-build/wiki#suggested-build-environment | |
git clone https://github.com/rbenv/rbenv.git ~/.rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc | |
echo 'eval "$(rbenv init -)"' >> ~/.bashrc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
RBENV_GROUP=admin | |
# install rbenv in /usr/local/rbenv | |
cd /usr/local | |
git clone git://github.com/sstephenson/rbenv.git rbenv | |
chgrp -R ${RBENV_GROUP} rbenv | |
chmod -R g+rwxXs rbenv |