2024-01-01から1年間の記事一覧
デフォルトのバックアップコマンド pg_dump ・デフォルトのスクリプト形式を選択するとpsqlコマンドでリストアできる。 $ pg_dump database名 > backup_file名リストアコマンド psql $ psql database名 < backup_file名アーカイブ形式のリストアコマンド pg_…
app/assets/stylesheets/actiontext.scss //=-require trix/dist/trixの行を削除 // // Provides a drop-in pointer for the default Trix stylesheet that will format the toolbar and // the trix-editor content (whether displayed or under editing). …
Ubuntu 20.04だとエラーにならないのに22.04だとエラーが出てdeployできない。 rake stdout: Nothing written rake stderr: bundler: failed to load command: rake (/var/www/rails/shared/bundle/ruby/2.7.0/bin/rake) /usr/local/rbenv/versions/2.7.1/li…
package.jsonとbabel.config.jsの下記proposalの部分をtransformに書き換え - @babel/plugin-proposal-private-methods + @babel/plugin-transform-private-methods - @babel/plugin-proposal-private-property-in-object + @babel/plugin-transform-private…
.bashrcに追記 export RUBYOPT='-W:no-deprecated'$ source ~/.bashrc
config/environments/production.rb + ENV['NODE_OPTIONS'] = '--openssl-legacy-provider'
sudo perl -p -i.bak -e 's%(deb(?:-src|)\s+)https?://(?!archive\.canonical\.com|security\.ubuntu\.com)[^\s]+%$1http://ftp.riken.jp/Linux/ubuntu/%' /etc/apt/sources.list
Gemfile内のwebpackerのバージョンを変更 Gemfile - gem 'webpacker', '~> 4.0' + gem 'webpacker', '~> 5.0'$ bundle installyarn.lockの削除package.json内のwebpackerのバージョンを変更 package.json - "@rails/webpacker": "4.3.0" + "@rails/webpacker…
Create a new repository on the command line echo "# repository_name" >> README.md git init git add README.md git commit -m "first commit" git branch -M main git remote add origin git@github.com:[Owner]/[repository_name].git git push -u ori…