This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### Run Typesense via Docker ######################################## | |
| set -x | |
| export TYPESENSE_API_KEY=xyz | |
| export TYPESENSE_HOST=http://localhost:8108 | |
| docker stop typesense-repro 2>/dev/null | |
| docker rm typesense-repro 2>/dev/null | |
| rm -rf "$(pwd)"/typesense-data-dir-repro | |
| mkdir "$(pwd)"/typesense-data-dir-repro |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Invoke using rake db:data:* | |
| # Eg: rake db:data:migrate | |
| namespace :db do | |
| namespace :data do | |
| pattern = /^db:data:(.*)$/ | |
| rule pattern do |t| | |
| ActiveRecord::Base.schema_migrations_table_name = 'data_migrations' | |
| ActiveRecord::Tasks::DatabaseTasks.migrations_paths = ["#{Rails.root}/db/migrate_data"] | |
| task_name = t.name.gsub(pattern, 'db:\1') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| adduser --system --no-create-home --disabled-login --disabled-password --group <username> |