Rails container
Deploy a Ruby on Rails app in a container with a linked public S3 bucket.
const bucket = new sst.aws.Bucket("MyBucket", { access: "public",});const vpc = new sst.aws.Vpc("MyVpc");
const cluster = new sst.aws.Cluster("MyCluster", { vpc });new sst.aws.Service("MyService", { cluster, loadBalancer: { ports: [{ listen: "80/http", forward: "3000/http" }], }, environment: { RAILS_MASTER_KEY: (await import("fs")).readFileSync( "config/master.key", "utf8" ), }, dev: { command: "bin/rails server", }, link: [bucket],});View the full example.