This README would normally document whatever steps are necessary to get the application up and running.
Things you may want to cover:
-
Ruby version
-
System dependencies
-
Configuration
-
Database creation
-
Database initialization
-
How to run the test suite
-
Services (job queues, cache servers, search engines, etc.)
-
Deployment instructions
-
...
-
setup s3 in config/deploy.yml
-
setup SSH connection with
# ~/.ssh/config Host s3.kamal-testbed HostName 192.168.0.5 ProxyJump kamal-testbed.online User root IdentityFile ~/.ssh/id_rsa Port 22
-
kamal server bootstrap -h 192.168.0.5
-
add to .kamal/secrets
S3_ACCESS_KEY_ID=$S3_ACCESS_KEY_ID S3_SECRET_ACCESS_KEY=$S3_SECRET_ACCESS_KEY
-
export S3 and KAMAL_REGISTRY_PASSWORD vars to terminal
-
kamal registry login -h 192.168.0.5
-
kamal accessory boot s3
-
kamal server exec "chown 1001:1001 workshop-kamal2-s3/data" -h 192.168.0.5
-
create and update S3 keys via minio console
-
kamal server exec "docker exec kamal-proxy kamal-proxy deploy s3 --host s3.kamal-testbed.online --target 192.168.0.5:9000 --tls --health-check-path /minio/health/live" -h 87.228.32.111
-
kamal server exec "kamal server exec "docker exec kamal-proxy kamal-proxy list" -h 87.228.32.111
-
rails active_storage:install
-
rails db:migrate
-
add
gem "aws-sdk-s3", require: false
, uncommentimage_processing
, bundle -
set
config/storage.yml
-
set
config.active_storage.service
inconfig/environments/production.rb
-
add file upload and usage into code