πDeploy a Ruby on Rails App on Clouddley
Learn how to deploy a Ruby on Rails app on Clouddley.
Prerequisites
Deploy your Ruby on Rails Application
Create a Dockerfile
FROM ruby:3.4.4-alpine
# Install only the essentials for your gems
RUN apk add --no-cache \
build-base \
yaml-dev \
nodejs \
yarn \
tzdata \
git
# Set working directory
WORKDIR /app
# Copy Gemfile and Gemfile.lock first (for caching)
COPY Gemfile Gemfile.lock ./
# Install gems
RUN bundle install
# Copy the rest of the application
COPY . .
EXPOSE 3000
CMD ["rails", "server", "-b", "0.0.0.0"]
Accessing Apps on Clouddley

Step 1: Configure Service

Step 2: Configure Git

Step 3: Configure your Virtual Machine

Step 4: Configure app settings

Step 5: Configure Environment Variables



Step 6: Set up Notifications (optional)

Step 7: Test and Verify the app


Conclusion
Last updated
