2022-07-24から1日間の記事一覧

blogsync pullコマンド

コマンド blogsync pull ドメイン名 具体例 blogsync pull dev63.hatenablog.com

timestampで値を挟むprintデバッグ

Rails Rails.logger.info(Time.now) Rails.logger.info(Time.now) Rails.logger.info(debug_val) Rails.logger.info(Time.now) Rails.logger.info(Time.now) JavaScript console.log( new Date().getHours().toString() + new Date().getMinutes().toString(…

resqueのコマンド集

Resqueの導入【Rails】 resqueのインストール gem 'resque' bundle install redis-serverを起動 $ redis-server ワーカーを待つ QUEUE=* bundle exec rake environment resque:work taskを作る require 'resque/tasks' namespace :resque do end ワーカーを…

作業ブランチにmainをマージ

git checkout main git pull origin main git checkout 作業ブランチ git merge main git push origin 作業ブランチ