Dockerイメージを作成して、 bin/setup
を実行する。
make init
make bundle
-
DB init
make dbinit
-
DB console
make dbconsole
-
DB migrate
make migrate
-
DB rollback
make rollback
-
DB seed
make dbseed
make server
実行すると http://localhost:3000 でアクセスできる。
make console
- sandbox
make console-sandbox
make minitest
-
rubocop
make rubocop
-
rubocop-correct
make rubocop-correct
-
rubocop-correct-all
make rubocop-correct-all
docker-compose run --rm web bin/rails -T
make start
DamArtistUrl.fetch_dam_artist
DamSong.fetch_dam_songs
Song.fetch_dam_songs
JoysoundSong.fetch_joysound_song
Song.fetch_joysound_songs
DisplayArtist.fetch_joysound_artist
JoysoundMusicPost.fetch_music_post
DisplayArtist.fetch_joysound_music_post_artist
JoysoundMusicPost.fetch_music_post_song_joysound_url
Song.fetch_joysound_music_post_song
Song.refresh_joysound_music_post_song
- 差分がある場合の確認方法
- 原因は、アーティストが重複している可能性あり。
JoysoundMusicPost.all.map { { title: _1.title } } - Song.music_post.map { { title: _1.title} }
make export-for-algolia
make export-karaoke-songs