Landing page for RBBR with guides subscription form.
- Install Ruby (version 3.3.2 recommended)
- Install dependencies:
bundle install
- Run the application:
or using make:
bundle exec ruby app.rb
make dev
- Open http://localhost:4567 in your browser
-
Create a new service in Easypanel
-
Select "Custom" or "Docker" option
-
Configure parameters:
- Name:
rbbr-landing
(or any other) - Image: leave empty if using a GIT repository
- Source: URL of your Git repository
- Branch:
main
(or other branch you use) - Port:
4567
- Domains: configure your domain
- Name:
-
Add environment variables:
PORT=4567
WEBHOOK_URL=https://your-n8n-instance.com/webhook-test/your-webhook-id
(real webhook URL)
-
Click "Deploy"
Create a .env
file in the project root (it won't be added to the repository):
PORT=4567
WEBHOOK_URL=https://your-n8n-instance.com/webhook-test/your-webhook-id
/
├── app.rb # Main Sinatra application file
├── Gemfile # Ruby dependencies
├── Makefile # Development commands
├── Dockerfile # Docker build instructions
├── public/ # Static files
│ ├── css/ # CSS styles
│ ├── js/ # JavaScript files
│ └── images/ # Images
└── views/ # ERB templates
└── index.erb # Main page template
If the service doesn't start in Easypanel and gets stuck in "Waiting for service to start...", try these steps:
-
Check Logs
- In Easypanel, go to your service and click "Logs"
- Look for specific errors in the startup process
-
Environment Variables
- Make sure all required environment variables are set:
PORT=4567
WEBHOOK_URL=https://your-webhook-url
- Make sure all required environment variables are set:
-
Memory & Resources
- Ensure the service has enough memory (at least 512MB)
- If using a small VPS, increase swap space
-
Manual Command Test
- SSH into the server and try running the application manually:
cd /path/to/deployment bundle exec ruby app.rb -o 0.0.0.0
-
Networking
- Check if port 4567 is accessible
- Make sure there are no firewall issues
-
File Permissions
- Ensure all files have correct permissions
- The entrypoint.sh script needs to be executable
If all else fails, try deploying from scratch with a new service.