Last active
December 14, 2015 16:48
-
-
Save laserlemon/5117501 to your computer and use it in GitHub Desktop.
Attempt to reproduce Figaro issue re: Bundler.with_clean_env
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PUSHER_APP_ID: "2954" | |
| PUSHER_KEY: 7381a978f7dd7f9a1117 | |
| PUSHER_SECRET: abdc3b896a0ffb85d373 | |
| STRIPE_API_KEY: EdAvEPVEC3LuaTg5Q3z6WbDVqZlcBQ8Z | |
| STRIPE_PUBLIC_KEY: pk_BRgD57O8fHja9HxduJUszhef6jCyS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| source 'https://rubygems.org' | |
| gem 'rails', '3.2.12' | |
| # Bundle edge Rails instead: | |
| # gem 'rails', :git => 'git://github.com/rails/rails.git' | |
| gem 'sqlite3' | |
| # Gems used only for assets and not required | |
| # in production environments by default. | |
| group :assets do | |
| gem 'sass-rails', '~> 3.2.3' | |
| gem 'coffee-rails', '~> 3.2.1' | |
| # See https://github.com/sstephenson/execjs#readme for more supported runtimes | |
| gem 'therubyracer', :platforms => :ruby | |
| gem 'uglifier', '>= 1.0.3' | |
| end | |
| gem 'jquery-rails' | |
| gem 'figaro', '0.6.2' | |
| # To use ActiveModel has_secure_password | |
| # gem 'bcrypt-ruby', '~> 3.0.0' | |
| # To use Jbuilder templates for JSON | |
| # gem 'jbuilder' | |
| # Use unicorn as the app server | |
| # gem 'unicorn' | |
| # Deploy with Capistrano | |
| # gem 'capistrano' | |
| # To use debugger | |
| # gem 'debugger' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apt-get update | |
| apt-get upgrade | |
| # INSTALL RUBY | |
| apt-get install build-essential zlib1g zlib1g-dev libreadline5 libreadline5-dev libssl-dev libyaml-dev | |
| wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p392.tar.gz | |
| tar xvfz ruby-1.9.3-p392.tar.gz | |
| cd ruby-1.9.3-p392 | |
| ./configure --enable-pthread --enable-shared | |
| make | |
| make install | |
| cd .. | |
| # INSTALL HEROKU TOOLBELT | |
| wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh | |
| # INSTALL RAILS | |
| apt-get install libsqlite3-dev libv8-dev | |
| gem install rails | |
| rails new my-app | |
| cd my-app | |
| # CONFIGURE APPLICATION | |
| apt-get install vim | |
| # Edit Gemfile | |
| bundle install | |
| rails generate figaro:install | |
| # Edit config/application.yml | |
| # CONFIGURE HEROKU | |
| apt-get install git | |
| git init | |
| git add . | |
| git commit -m "Initial commit" | |
| heroku create | |
| # TEST FIGARO | |
| heroku config | |
| # => secure-castle-5097 has no config vars. | |
| bundle exec rake figaro:heroku | |
| heroku config | |
| # => === secure-castle-5097 Config Vars | |
| # => PUSHER_APP_ID: 2954 | |
| # => PUSHER_KEY: 7381a978f7dd7f9a1117 | |
| # => PUSHER_SECRET: abdc3b896a0ffb85d373 | |
| # => STRIPE_API_KEY: EdAvEPVEC3LuaTg5Q3z6WbDVqZlcBQ8Z | |
| # => STRIPE_PUBLIC_KEY: pk_BRgD57O8fHja9HxduJUszhef6jCyS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment