<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Ruslan&#39;s Tech Blog</title>
    <link>https://blog.bekenev.net/tags/ruby.html</link>
    <description>Software development related stuff</description>
    <language>en-us</language>
    <lastBuildDate>Thu, 25 Jan 2018 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://blog.bekenev.net/tags/ruby/feed.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Ruby&#39;s bundle exec [memo]</title>
      <link>https://blog.bekenev.net/2018/01/25/bundle-usage.html</link>
      <pubDate>Thu, 25 Jan 2018 00:00:00 +0000</pubDate>
      <guid>https://blog.bekenev.net/2018/01/25/bundle-usage.html</guid>
      <description>&lt;p&gt;Hey.&lt;/p&gt;&#xA;&lt;p&gt;I mostly use PHP or Node.js and sometimes I have to touch Ruby projects.&lt;/p&gt;&#xA;&lt;p&gt;I know I can run &lt;code&gt;bundle install&lt;/code&gt; to install deps from Gemfile but I was unable to find them in the project directory.&lt;/p&gt;&#xA;&lt;p&gt;It turned out the reason is they are installed globally. It doesn&amp;rsquo;t fit my needs sometimes so I had to find the way to install them locally.&lt;/p&gt;&#xA;&lt;p&gt;They solution is:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;bundle install --path=./local-dir-name&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;it will install packages into local directory but you were not be able to call binaries. Ok&amp;hellip;&lt;/p&gt;&#xA;&lt;p&gt;The solution for this is to run binaries via &lt;code&gt;bundle exec&lt;/code&gt; like so:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;bundle exec jekyll serve&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Works perfectly.&lt;/p&gt;&#xA;</description>
    </item>
  </channel>
</rss>
