I think you have looked at the tutorial from Mr. Heinemeier Hansson at least once or twice and have a similar setup.
rails new kamal_pg --css tailwind --skip-test --database=postgresql
cd kamal_pg| // install dependencies | |
| brew install ffmpeg | |
| brew install gifsicle | |
| // add alias | |
| alias gify='function _gify(){ ffmpeg -i "$1" -pix_fmt rgb8 -r 10 /tmp/{1%.*}_tmp.gif && gifsicle -O3 /tmp/{1%.*}_tmp.gif -o "${1%.*}.gif"; rm /tmp/{1%.*}_tmp.gif; unset -f _gify; }; _gify' | |
| // run it | |
| gify /path/to/file.mp4 |
| class Application < Rails::Application | |
| # Initialize configuration defaults for originally generated Rails version. | |
| config.load_defaults 7.0 | |
| # ensure that `update(files: [uploaded_file])` will append, not replace | |
| config.active_storage.replace_on_assign_to_many = false | |
| end |
| # delete local tag '12345' | |
| git tag -d 12345 | |
| # delete remote tag '12345' (eg, GitHub version too) | |
| git push origin :refs/tags/12345 | |
| # alternative approach | |
| git push --delete origin tagName | |
| git tag -d tagName |
| brew install libpq | |
| gem install pg -- --with-opt-dir="/usr/local/opt/libpq" | |
| bundle config --local build.pg --with-opt-dir="/usr/local/opt/libpq" | |
| bundle install |
I hereby claim:
To claim this, I am signing this object:
| ALTER DATABASE dbname CHARACTER SET utf8 COLLATE utf8_general_ci; |
| # 1) Create your private key (any password will do, we remove it below) | |
| $ cd ~/.ssh | |
| $ openssl genrsa -des3 -out server.orig.key 2048 | |
| # 2) Remove the password | |
| $ openssl rsa -in server.orig.key -out server.key |
| cat /etc/postgresql/9.6/main/postgresql.conf | grep log_min_duration_statement | |
| #log_min_duration_statement = -1 # -1 is disabled, 0 logs all statements | |
| log_min_duration_statement = 100 | |
| sudo tail -f /var/log/postgresql/postgresql-9.6-main.log |
| checkout: | |
| post: | |
| # Work around some silly configuration added by Circle that doesn't actually even do what they want it to. | |
| - git config --global --unset url.ssh://[email protected]:.insteadof |