Used to manage ruby environment, since it is more beneficial and clean to use non-system one.
Install rbenv and ruby-build
This script assumes cordova application uses app/res/icons/ios directory for icon assets.
appicon_generate gem using bundler (refer to this)gen_xml.rb in the same directry with Gemfileappicon_generate to generate icons for ios./gen_xml.rb to generate related xml tagsSample output:
| FROM williamyeh/scala | |
| RUN \ | |
| echo "ja_JP.UTF-8 UTF-8" >> /etc/locale.gen && \ | |
| dpkg-reconfigure -f noninteractive locales | |
| ENV LANG ja_JP.UTF-8 | |
| ENV LANGUAGE ja_JP.UTF-8 | |
| ENV LC_ALL ja_JP.UTF-8 |
| # A sample Gemfile | |
| source "https://rubygems.org" | |
| gem "natto" | |
| gem "romaji" |
This is just a small script to bootstrap Rails new application generation process.
Reason, why I don't use rails new as it is, because I don't want Rails to be installed at all :)
What I really wanted to have is a way to create Rails application without installing Rails system-wide.
Typical configuration is done with rbenv ( to manage and install ruby ) and bundler ( which is the only gem I need to install manually system-wide ).
| #!/bin/sh | |
| # | |
| # Written by Denis Vazhenin <[email protected]> | |
| # | |
| # This script was ported from Debian/Ubuntu version of start script for Gitlab: | |
| # https://raw.github.com/gitlabhq/gitlabhq/master/lib/support/init.d/gitlab | |
| # | |
| # PROVIDE: gitlab | |
| # REQUIRE: NETWORKING SERVERS DAEMON LOGIN | |
| # KEYWORD: shutdown |
| diff --git a/lib/tasks/gitlab/check.rake b/lib/tasks/gitlab/check.rake | |
| index a57c349..3253e16 100644 | |
| --- a/lib/tasks/gitlab/check.rake | |
| +++ b/lib/tasks/gitlab/check.rake | |
| @@ -118,7 +118,7 @@ namespace :gitlab do | |
| def check_init_script_exists | |
| print "Init script exists? ... " | |
| - script_path = "/etc/init.d/gitlab" | |
| + script_path = get_init_script_syspath |