# Configuring Bundler

This page explains how to configure the Bundler package manager to pull packages from the Seal artifact server based on your existing setup.

Make sure you have the access token for the server ready.

### Pull directly from the artifact server

1. Open the project's `Gemfile`.
2. Set your token to the artifact server in the `SEAL_TOKEN` environment variable, and put the project's ID in the `PROJECT_ID` environment variable.
3. Find the source. Usually it's:

```ruby
source 'https://rubygems.org'
```

Replace it with:

```ruby
source "https://#{ENV['SEAL_PROJECT']}:#{ENV['SEAL_TOKEN']}@ruby.sealsecurity.io 
```

4. Install the packages:

```bash
bundle install
```
