2023-04-01から1ヶ月間の記事一覧
sudo yum -y update sudo yum -y install git git clone https://github.com/aws/aws-cdk.git curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash nvm install v16.20.0 npm install -g yarn yarn install NODE_OPTIONS="--m…
zenn.dev の通り、 bin/rails db:encryption:init EDITOR=vi bin/rails credentials:edit --environment production
どうやら以下の通りらしい。 oknm.jp シークレットを生成して、環境変数 SECRET_KEY_BASE に登録したら通った。
前提: WSL(Ubuntu 20.04) サーバー側 Docker パスワードは testtest ポートは 5432 sudo docker run -p 5432:5432 --name postgres -e POSTGRES_PASSWORD=testtest postgres docker compose docker-compose.yml を用意 こっちは `root ユーザー yaml:docker-…
Enumerableモジュールの場合 class Test include Enumerable end test = Test.new pp test.respond_to?(:map) # true pp test.respond_to?(:each) # false ####### class AlphabetCollection include Enumerable def initialize @elements = ["a", "b", "c"]…
gist.github.com www.enjoy.ne.jp