Ruby bundler command

User Rating:  / 0
PoorBest 
bundler is used to maintain ruby gems for a specific project.
to Install: gem install bundler
 

bundle install command is used to install the gem files for the project. Below mentioned are some of the bundle options

 
1. Setting config path. Config file path can be set using bundle. this path is used for the gem installation.
 
bundle config build.pg --with-pg-config=/Library/PostgreSQL/9.3/bin/pg_config
 
2. Bundle installation
 
bundle install
 
3. Bundle installation for deployment. this option will pack the gem files within your project. All the gem files are transferred along with the source code.
 
bundle install —deployment
 
 All the gems will be installed under vendor/bundle
 
4. Bundle execute. Bundle can also execute commands
 
bundle exec rails server 
 
this will start the rails server
You are here: Home Document Ruby Ruby bundler command