In the Read-Me for ember-data I found the following lines:
Getting ember-data:
Currently you must build ember-data.js yourself.
Clone the repository, run bundle then rake dist. You'll find
ember-data.js in the dist directory."
I'm a little confused though... what does "run bundle" mean?
It's a ruby thing. Bundler is a rubygem for managing application dependencies. The bundle command is used to install all of the rubygems that are required by the ember-data project. Try this:
git clone git://github.com/emberjs/data.git
cd data
bundle install
rake
If bundle command is missing, you'll need to install the bundler gem:
gem install bundler
Of course you also need to have a modern version of ruby and rubygems ;-)
See http://gembundler.com/ for more info on bundler
run bundle means install the package dependencies via Bundler which will read the Gemfile and install the dependencies defined in it.
To install the dependencies run the command bundle install
Related
Trying to install a plugin in redmine, using docker. I'm new to redmine, and just know the docker basics. I have no knowledge of Ruby, so idk how those Gemfiles installations work.
I'm trying to install Issue recurring. The installation instructions for the plugin look straightforward:
su - redmine
git -C /var/lib/redmine/plugins/ clone https://github.com/cryptogopher/issue_recurring.git
cd /var/lib/redmine
bundle install
RAILS_ENV=production rake redmine:plugins:migrate
So I tried to translate that into a Dockerfile:
FROM redmine:3.3
RUN mkdir -p /var/lib/redmine/plugins/
RUN chown -R redmine:redmine /var/lib/redmine
#su - redmine
USER redmine
RUN git -C /var/lib/redmine/plugins/ clone https://github.com/cryptogopher/issue_recurring.git
#cd /var/lib/redmine
WORKDIR /var/lib/redmine/
#bundle install
RUN bundle install
#RAILS_ENV=production rake redmine:plugins:migrate
ENV RAILS_ENV production
RUN rake redmine:plugins:migrate
But what I get is:
...
Step 7/9 : RUN bundle install
---> Running in 1139cd4ccb43
Could not locate Gemfile
The command '/bin/sh -c bundle install' returned a non-zero code: 10
Am I doing something wrong here, or is there a bug in the plugin? Being inexperienced in Ruby, I cannot tell. I tried running "bundle install" in "/var/lib/redmine/plugins/" and "/var/lib/redmine/plugins/issue-recurring/" too, but same result.
For anyone looking for solution, it's here: https://it.michalczyk.pro/issues/15
Excerpt:
I found the problem. It's not installed under /var/lib/redmine/, it's installed under "/usr/src/redmine"! I was assuming /var/lib/redmine/ is the standard directory...
The installation instruction of the plugin seems to for non-docker scenario. Try "redmine bundle install" like they have done Here:
https://github.com/docker-library/redmine/blob/master/3.3/Dockerfile#L129
I have Redmine 2 on Ubuntu and want to install additional agile plugin. I have added redmine_agile folder downloaded from http://www.redminecrm.com/projects/agile/pages/1 to /usr/share/redmine/lib/plugins and used commands:
sudo bundle install --without development test
sudo bundle exec rake redmine:plugins NAME=redmine_agile RAILS_ENV=production
After last one, I get:
(in /usr/share/redmine)
rake aborted!
No such file to load -- agile_data
Tasks: TOP => redmine:plugins:migrate => environment
How to solve this problem?
I've unpacked plugin into incorrect folder. It should be unpacked into /usr/share/redmine/plugins. Migration command should be run from /usr/share/redmine/
Is there any way to use calabash-android without gem install command?
I do not want to use gem install command and wants just folder where it is extracted. Is is it possible to do it?
I am using windows 7 OS.
You can clone Git repository and build that using rake build command. Also you can refer calabash-android build which explains all the steps.
Ember.js has a number of addons, but most lack any sort of installation instructions. I successfully built sproutcore-routing (e.g.) by checking it out into ember.js/packages and hacking Rakefile and ember.json to add it to the list of packages, but that doesn't seem like best practice. Is there some convention I'm missing?
On the subject of building ember.js: on Ubuntu, I needed to sudo aptitude install ruby-1.9.1-full libxml2-dev libxslt1-dev nodejs, then sudo gem install {rake,github-upload,bundler}, then bundle install, then bundle exec rake. This is probably old hat to a Ruby hacker, but phew.
Most of the "official" add-ons have a Rakefile of their own to build the add-on in much the same way that Ember itself is built. As you've correctly observed, you'll need certain dependencies installed before you can use the Rakefile. I think Ruby, RubyGems, Rake and Node.js should be all you need to install (possibly libxml2-dev and libxslt1-dev), then a "bundle install" should take care of anything else the Rakefile needs.
In the case of sproutcore-routing there is no Rakefile because the entire add-on is in lib/core.js so all you have to do is copy that file to sproutcore-routing.js and you're good to go.
I want to install prawnto plug-in in my rails 3.0.6 application but when i fire the command as given here
rails plugin install git://github.com/thorny-sun/prawnto.git
it gives me result as given below
mkdir -p /var/www/octo11/vendor/plugins/prawnto
rm -rf /var/www/octo11/vendor/plugins/prawnto
which create and delete plugin directory automatically
Please anyone suggest me any alternatively to install the prawnto plugin. My system configuration is as given below
rails 3.0.6
ruby 1.8.7
ubuntu 11.04
thorny-sun seems to have deleted their fork, try one with recent updates, including docs on using with 3.1 in the readme:
https://github.com/forrest/prawnto
The best way to install seems to be using the gem version of this fork:
gem "prawnto_2", :require => "prawnto"
and then
bundle install