Skip to main content
Conductor works well with Rails apps. Here’s a basic conductor.json to add to the root directory of your project. Once added, every new workspace will automatically copy your database configuration, master key, and install dependencies.
{
  "scripts": {
    "setup": "cp $CONDUCTOR_ROOT_PATH/config/master.key config/master.key && cp $CONDUCTOR_ROOT_PATH/config/database.yml config/database.yml && bundle install",
    "run": "bin/rails server",
    "archive": ""
  }
}
If you use environment variables via .env files (with the dotenv gem), you can include that too:
{
  "scripts": {
    "setup": "cp $CONDUCTOR_ROOT_PATH/.env . && cp $CONDUCTOR_ROOT_PATH/config/master.key config/master.key && cp $CONDUCTOR_ROOT_PATH/config/database.yml config/database.yml && bundle install",
    "run": "bin/rails server",
    "archive": ""
  }
}