-
You must have the following dependencies installed:
- Ruby 3
- See
.ruby-version
for the specific version.
- See
- Node 19
- See
.nvmrc
for the specific version.
- See
- PostgreSQL 14
- Redis 6.2
- Chrome (for headless browser tests)
If you don't have these installed, you can use rails.new to help with the process.
- Ruby 3
-
Run the
bin/setup
script. -
Create a Prefab account at https://prefab.cloud.
-
Create a file
config/application.yml
# config/application.yml
BASE_URL: http://localhost:3000
MARKETING_SITE_URL: /account
PREFAB_API_KEY: XX-Development-PXXX-EXXX-SDK-REPLACE-ME
- Start the application with
bin/dev
. - Visit http://localhost:3000.
- Sign up for a new account.
- Change log levels in the Prefab Log Level UI and see the changes reflected in the application.
If this is your first time working on a Bullet Train application, be sure to review the Bullet Train Basic Techniques and the Bullet Train Developer Documentation.
If this is your first time working on a Bullet Train application, be sure to review the Bullet Train Basic Techniques and the Bullet Train Developer Documentation.
Clicking this button will take you to the first step of a process that, when completed, will provision production-grade infrastructure for your Bullet Train application which will cost about $30/month.
When you're done deploying to Render, you need to go into "Dashboard" > "web", copy the server URL, and then go into "Env Groups" > "settings" and paste the URL into the value for BASE_URL
.