I installed capistrano vía gem install capistrano, but when I run cap install to initialize a project, that command outputs:
command not found: cap
Previously I installed ruby 2.6.5p114 with brew install ruby and updated my path to new version, this is in a MacOS version 10.14.6
I want to deploy a Symfony4 project, any idea about what step I'm missing?
Ruby Gem's may not be as consistent as the use of Composer. I use Capistrano to deploy a number of my own sites (including Symfony), and mostly followed the instructions on the capistrano-symfony page: https://github.com/capistrano/symfony/
Write the Gemfile
Install, with bundle install
Run: bundle exec cap install
Edit the capistrano config, and run with bundle exec cap prod deploy to use the configurations at config/deploy.rb & config/deploy/prod.rb
Related
I'm using Fastlane one my admin account (Mac OS) and it works great.
I try now to install and configure Jenkins + Fastlane but when jenkins try to run a fastlane commande, I get that error : can't find gem fastlane (>= 0.a) with executable fastlane (Gem::GemNotFoundException)
Path of my fastlane install is : /Users/myusername/.rvm/rubies/ruby-2.4.2/bin
When I try to update fastlane in jenkins account (su jenkins), console say I'm not sudo. No error with my account.
Already tried to inject Path in jenkins conf and to set RVM-managed environment version. But it failed.
Use anyone of below
Using RubyGems
sudo gem install fastlane -NV
Alternatively using Homebrew
brew cask install fastlane
See link for reference link
If you using pipeline in jenkins use sh 'gem install fastlane'
it works fine.
This is what I did to fix a similar bug:
gem update bundler
For me all that needed to be done was rvm default and then reinstall what was needed, because for some reason it was installing for the older ruby version and not the newer one, so when it was accessing it on Jenkins, it was checking the new version which had nothing.
When using fastlane and cocoapods to build our iOS app I noticed that fastlane does not use the version of cocoapods that I have installed using
sudo gem install cocoapods
When running
pod --version
it returns the latest version which is of this moment
1.3.1
However, when running a build lane in fastlane it uses cocoapods version 1.2.1 for some reason.
I use this in my Fastfile to clean and pod install
cocoapods(
clean: true,
podfile: "Podfile"
)
Is there a way I can tel fastlane to use a specific version of cocoapods? Or use the version I have installed manually?
It's recommended to use a Gemfile:
It is recommended that you use a Gemfile to define your dependency on fastlane. This will clearly define the used fastlane version, and its dependencies, and will also speed up using fastlane.
Install bundler using sudo gem install bundler
Create a ./Gemfile in the root directory of your project with the content:
source "https://rubygems.org"
gem 'fastlane'
gem 'cocoapods'
Run [sudo] bundle update and add both the ./Gemfile and the ./Gemfile.lock to version control
Every time you run fastlane, use bundle exec fastlane [lane]
On your CI, add [sudo] bundle install as your first build step
To update fastlane, just run [sudo] bundle update
I installed redmine on my server.
Redmine is installed in /usr/share/redmine.
I try to install redmine backlogs using the installation guide)
As mentionned in the guide, I execute the following commands:
cd /usr/share/redmine
bundle exec rake redmine:backlogs:install
It fails with the message: Could not locate Gemfile
It looks like the bundle command is waiting for a gemfile in the directory but this file is missing.
Do you have any idea how to solve this problem?
EDIT: Note that I installed Redmine using the Wheezy backports. Maybe we cannot install plugins when Redmine has been installed from the Debian package....
Thank you
That url is for sale now, your best bet is to build it from source from the most currently updated fork from that project which is: https://github.com/ahelten/redmine_backlogs
Try this:
cd ~/redmine/plugins
git clone https://github.com/ahelten/redmine_backlogs.git
git checkout feature/v1.0.6_inherit_fields
Install libs and gems needed by backlogs
sudo apt-get install libxslt-dev libxml2-dev
sudo gem install nokogiri -v '1.5.11'
bundle install
Test Your Work
bundle exec rails server webrick -e production
NOTE: this assumes that you have git and whatever other development tools and gems you need installed. If you fail to install a gem, scroll up and read the output, chances are you need to add a package mentioned in the output first (sudo apt-get install foo). If you fail to find a gem you are either building in a directory without a Gemfile or the gem the gem file wants doesn't exist ... search rubygems.org if that happens)
I want to install a new gem i.e http://rubygems.org/gems/wolcanus-simple_captcha to my engineyard development environment.
Is there a simple process how, I can install the same.
I use Mongodb and need to run the mongodb scripts for the above to install.
write in your terminal gem 'wolcanus-simple_captcha', '~> 0.1.6'
then bundle install
After having installed my application's gems by executing:
bundle install --without production
Now I want to install the production group gems. However, when I issue:
bundle install
bundle seems to remember the previous setting and none of the production group gems are installed. How can I clean this bundle 'cache' and force it to reinstall all the gems in the Gemfile?
The quickest option is to simply delete the bundle config file located at:
.bundle/config
within your Rails project then issue the commands:
bundle update
bundle install
Sources here and here.