Giter Club home page Giter Club logo

prelaunchr's Introduction

Prelaunchr

Archived

Warning: This project is unmaintained and has dependencies with known security vulnerabilities.

Six years after our own viral pre-launch campaign, and having enabled many other teams to start with a splash, it is time to retire the Prelaunchr project. We have taken the step of archiving Prelaunchr - it has been hard to update vulnerable dependencies of a project that we haven't used since 2013! You are welcome to fork the project, but we recommend updating all dependencies to recent versions and enabling Github's security scans.

We will not be updating the project or responding to issues or PRs. Good luck with your launches and beyond.

โ€” Harry's Engineering Team

Build Status

About

Originally open sourced over on our engineering blog, and discussed in great detail over at Tim Ferriss' Blog, Prelaunchr is a skeleton Rails application for quickly starting a viral prelaunch campaign for new companies or products. The campaign is conducive to social sharing and has prize levels based on the number of people each person refers. By default, we've included our original HTML/CSS for both the site and email to give you a better idea of how this looked when actually running.

Mechanics

Prelaunchr has a main mechanic from which everything else is derived: Every User is given a unique referral_code which is how the application knows who referred a signing up user. Based on the amount of referrals a User has brought to the site, they are put into a different "prize group". The groups, amounts, and prizes are completely up to you to set.

IP Blocking

By default, we block more than 2 sign-ups from the same IP address. This was simplistic, but was good enough for us during our campaign. If you want something more substantial take a look at Rack::Attack

Developer Setup

Get Ruby 2.5.0 (rbenv), bundle and install:

brew update && brew upgrade ruby-build && rbenv install 2.5.0

Clone the repo and enter the folder (commands not shown).

Install Bundler, Foreman and Mailcatcher then Bundle:

gem install bundler foreman mailcatcher
bundle

Copy the local database.yml file sample and .env.sample:

cp config/database.yml.sample config/database.yml
cp .env.sample .env

Update your newly created .env file with the needed configuration DEFAULT_MAILER_HOST: sets the action mailer default host as seen in config/environment/.rb. You will minimally need this in production. SECRET_KEY_BASE: sets a secret key to be used by config/initializers/devise.rb

Setup your local database:

bundle exec rake db:create
bundle exec rake db:migrate

Start local server and mail worker:

foreman start -f Procfile.dev

View your website at the port default http://localhost:5000/. View sent mails at http://localhost:1080/.

To create an admin account

In Rails console, run this command. Be careful to not use the example admin user for security reasons. Password confirmation should match password.

AdminUser.create!(:email => '[email protected]', :password => 'password', :password_confirmation => 'passwordconfirmaiton')

You can run this locally in a Rails console for development testing.

If you are deployed to Heroku, you would run it there.

Teardown

When your prelaunch campaign comes to an end we've included a helpful rake task to help you compile the list of winners into CSV's containing the email addresses and the amount of referrals the user had.

  • Run bundle exec rake prelaunchr:create_winner_csvs and the app will export CSV's in /lib/assets corresponding to each prize group.

Configuration

  • Set the different prize levels on the User::REFERRAL_STEPS constant inside /app/models/user.rb
  • The config.ended setting in /config/application.rb decides whether the prelaunch campaign has ended or not (e.g. Active/Inactive). We've included this option so you can quickly close the application and direct users to your newly launched site.

License

The code, documentation, non-branded copy and configuration are released under the MIT license. Any branded assets are included only to illustrate and inspire.

Please change the artwork to use your own brand! Harry's does not give you permission to use our brand or trademarks in your own marketing.

prelaunchr's People

Contributors

bcobb avatar danielschwartz avatar eldonyoder avatar irubnich avatar phamdt avatar stephanejuban avatar titibouboul avatar werkshy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

prelaunchr's Issues

All in one

Is there a way of making all of the different files into one file, so you can just copy and paste the code into a html reader, so it is easy for stupid, inexperienced RoR people like me?

Working App???

Has anyone managed to get this working??

What version of Ruby/DB/OS?

Thanks

Setting up mail?

hey guys, so i've got my prelaunchr app successfully deployed on heroku, set the prize lvls, secret token, and would like to know how i setup the mailer? also how do i harvest the collected emails as the csv? where can i get it from?

thank you!

Upgrade to Rails 4

I've got a branch where I did an upgrade of the app to Rails 4. I don't know that you want to merge it into master directly, but if you create a branch for rails 4 I'd be happy to issue a pull request into that branch.

Or if you prefer to update the app to rails 4 by default (probably reasonably safe) then I'm happy to do a pull request directly to master.

Or of course you can access my repo and merge it in yourself any way you like. :)
Thanks!

Responsive design

I'm not sure if it's just me, but the CSS doesn't seem to be responsive on mobile phones. On the iPhone 5 the view just turns into a narrow (but still useable) strip towards the top of the screen.

I'm used to working with Rails 4 and bootstrap, which automatically adjusts the view for mobile devices.

Am I missing something? Or is it possible I tweaked something that interfered with the responsive design on mobile?

Bundle does not execute

An error occurred while installing pg (0.14.1), and Bundler cannot continue.
Make sure that gem install pg -v '0.14.1' succeeds before bundling.

Detecting visitor IP

In the users_controller, you use request.env['HTTP_X_FORWARDED_FOR'] to detect the visitor IP. In my case, I'm using a standalone phusion passenger setup, and found it not working.

I change it to request.remote_ip, then it works. Later, I change my setup using nginx in front of phusion passenger. Still works.

Is there any reason you use request.env['HTTP_X_FORWARDED_FOR'] instead of request.remote_ip ?

Source does not contain any versions of 'prelaunchr (>= 0) ruby'

I wrote gem prelaunchr in my gem file

gem 'prelaunchr' , git: 'https://github.com/harrystech/prelaunchr.git'

When i am trying to do "bundle install"
getting error like this

Could not find gem 'prelaunchr (>= 0) ruby' in https://github.com/harrystech/prelaunchr (at master).
Source does not contain any versions of 'prelaunchr (>= 0) ruby'
i searched in rubygems.org, but i didn't get that.
can any one tell me why i am getting this error ?

Precompilation fails

I don't know if this is the same error as reported in issue #1, but the solution there doesn't work for me.

The log below is from trying to install Prelaunchr on Heroku, but I get the same error locally. The cause seems to be "refer/[email protected] isn't precompiled".

I'm no Rails developer, so I don't know if there's something I did wrong here.

$ git push -u heroku master
Initializing repository, done.
Counting objects: 164, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (139/139), done.
Writing objects: 100% (164/164), 2.47 MiB | 132.00 KiB/s, done.
Total 164 (delta 19), reused 152 (delta 14)

-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.0.0
-----> Installing dependencies using 1.6.3
       Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
       Fetching gem metadata from https://rubygems.org/..........
       Fetching additional metadata from https://rubygems.org/..
       Installing rake 10.0.3
       Installing multi_json 1.6.1
       Installing builder 3.0.4
       Installing i18n 0.6.4
       Installing journey 1.0.4
       Installing erubis 2.7.0
       Installing hike 1.2.1
       Installing mime-types 1.21
       Installing tilt 1.3.4
       Installing polyglot 0.3.3
       Installing rack 1.4.5
       Installing thor 0.17.0
       Installing sass 3.2.5
       Using json 1.7.7
       Installing orm_adapter 0.4.0
       Installing fastercsv 1.5.5
       Installing has_scope 0.5.1
       Installing arel 3.0.2
       Using bundler 1.6.3
       Installing coffee-script-source 1.4.0
       Installing tzinfo 0.3.36
       Installing bcrypt-ruby 3.0.1
       Installing raindrops 0.10.0
       Installing execjs 1.4.0
       Installing activesupport 3.2.11
       Installing treetop 1.4.12
       Installing rack-cache 1.2
       Installing rack-test 0.6.2
       Installing sprockets 2.2.2
       Installing rack-ssl 1.3.3
       Installing warden 1.2.1
       Installing bourbon 3.0.1
       Installing rdoc 3.12.2
       Installing coffee-script 2.2.0
       Installing pg 0.14.1
       Installing kgio 2.8.0
       Installing uglifier 1.3.0
       Installing activemodel 3.2.11
       Installing arbre 1.0.1
       Installing delayed_job 3.0.5
       Installing mail 2.4.4
       Installing actionpack 3.2.11
       Installing activerecord 3.2.11
       Installing activeresource 3.2.11
       Installing actionmailer 3.2.11
       Installing formtastic 2.2.1
       Installing railties 3.2.11
       Installing kaminari 0.14.1
       Installing polyamorous 0.5.0
       Installing delayed_job_active_record 0.4.4
       Installing devise 2.2.2
       Installing responders 0.9.3
       Installing jquery-rails 2.2.0
       Installing rails 3.2.11
       Installing coffee-rails 3.2.2
       Installing sass-rails 3.2.6
       Installing unicorn 4.6.0
       Installing meta_search 1.1.3
       Installing inherited_resources 1.3.1
       Installing activeadmin 0.5.1
       Your bundle is complete!
       Gems in the groups development and test were not installed.
       It was installed into ./vendor/bundle
       Post-install message from rdoc:
       Depending on your version of ruby, you may need to install ruby rdoc/ri data:
       <= 1.8.6 : unsupported
       = 1.8.7 : gem install rdoc-data; rdoc-data --install
       = 1.9.1 : gem install rdoc-data; rdoc-data --install
       >= 1.9.2 : nothing to do! Yay!
       Post-install message from meta_search:
       *** Thanks for installing MetaSearch! ***
       Be sure to check out http://metautonomo.us/projects/metasearch/ for a
       walkthrough of MetaSearch's features, and click the donate button if
       you're feeling especially appreciative. It'd help me justify this
       "open source" stuff to my lovely wife. :)
       Bundle completed (23.50s)
       Cleaning up the bundler cache.
-----> Writing config/database.yml to read from DATABASE_URL
-----> Preparing app for Rails asset pipeline
       Running: rake assets:precompile
       DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/Rakefile:7)
       DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/Rakefile:7)
       rake aborted!
       refer/[email protected] isn't precompiled
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.11/lib/sprockets/helpers/rails_helper.rb:142:in `digest_for'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.11/lib/sprockets/helpers/rails_helper.rb:151:in `rewrite_asset_path'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.11/lib/action_view/asset_paths.rb:27:in `compute_public_path'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.11/lib/sprockets/helpers/rails_helper.rb:56:in `asset_path'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/app/models/user.rb:18:in `<class:User>'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/app/models/user.rb:1:in `<top (required)>'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `block in require'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:236:in `load_dependency'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:359:in `require_or_load'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:502:in `load_missing_constant'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:192:in `block in const_missing'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:190:in `each'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:190:in `const_missing'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/app/admin/users.rb:1:in `<top (required)>'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:245:in `load'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:245:in `block in load'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:236:in `load_dependency'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:245:in `load'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/activeadmin-0.5.1/lib/active_admin/application.rb:190:in `block in load!'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/activeadmin-0.5.1/lib/active_admin/application.rb:190:in `each'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/activeadmin-0.5.1/lib/active_admin/application.rb:190:in `load!'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/activeadmin-0.5.1/lib/active_admin/application.rb:213:in `routes'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/activeadmin-0.5.1/lib/active_admin.rb:79:in `routes'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/config/routes.rb:3:in `block in <top (required)>'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.11/lib/action_dispatch/routing/route_set.rb:282:in `instance_exec'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.11/lib/action_dispatch/routing/route_set.rb:282:in `eval_block'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.11/lib/action_dispatch/routing/route_set.rb:260:in `draw'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/config/routes.rb:1:in `<top (required)>'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:245:in `load'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:245:in `block in load'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:236:in `load_dependency'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:245:in `load'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/railties-3.2.11/lib/rails/application/routes_reloader.rb:40:in `block in load_paths'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/railties-3.2.11/lib/rails/application/routes_reloader.rb:40:in `each'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/railties-3.2.11/lib/rails/application/routes_reloader.rb:40:in `load_paths'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/railties-3.2.11/lib/rails/application/routes_reloader.rb:16:in `reload!'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/railties-3.2.11/lib/rails/application.rb:108:in `reload_routes!'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/activeadmin-0.5.1/lib/active_admin/reloader.rb:34:in `reload!'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/activeadmin-0.5.1/lib/active_admin/reloader.rb:61:in `block in attach!'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:405:in `__run_callback'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:385:in `_run_prepare_callbacks'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:81:in `run_callbacks'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.11/lib/action_dispatch/middleware/reloader.rb:74:in `prepare!'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.11/lib/action_dispatch/middleware/reloader.rb:48:in `prepare!'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/railties-3.2.11/lib/rails/application/finisher.rb:47:in `block in <module:Finisher>'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/railties-3.2.11/lib/rails/initializable.rb:30:in `instance_exec'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/railties-3.2.11/lib/rails/initializable.rb:30:in `run'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/railties-3.2.11/lib/rails/initializable.rb:55:in `block in run_initializers'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/railties-3.2.11/lib/rails/initializable.rb:54:in `each'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/railties-3.2.11/lib/rails/initializable.rb:54:in `run_initializers'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/railties-3.2.11/lib/rails/application.rb:136:in `initialize!'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/railties-3.2.11/lib/rails/railtie/configurable.rb:30:in `method_missing'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/config/environment.rb:5:in `<top (required)>'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `block in require'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:236:in `load_dependency'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/railties-3.2.11/lib/rails/application.rb:103:in `require_environment!'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/railties-3.2.11/lib/rails/application.rb:297:in `block (2 levels) in initialize_tasks'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.11/lib/sprockets/assets.rake:93:in `block (2 levels) in <top (required)>'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.11/lib/sprockets/assets.rake:60:in `block (3 levels) in <top (required)>'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.11/lib/sprockets/assets.rake:23:in `invoke_or_reboot_rake_task'
       /tmp/build_1f357a67-7899-4868-8396-6215c5401b34/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.11/lib/sprockets/assets.rake:29:in `block (2 levels) in <top (required)>'
       Tasks: TOP => environment
       (See full trace by running task with --trace)
 !
 !     Precompiling assets failed.
 !

 !     Push rejected, failed to compile Ruby app

500 Error when visiting dev server

I followed the README and am getting the following error when visiting localhost:5000. I'm on MacOS Sierra FWIW

 foreman start -f Procfile.dev
15:17:17 web.1         | started with pid 10343
15:17:17 worker.1      | started with pid 10344
15:17:17 mailcatcher.1 | started with pid 10345
15:17:17 web.1         | I, [2018-05-03T15:17:17.595010 #10343]  INFO -- : Refreshing Gem list
15:17:17 mailcatcher.1 | Starting MailCatcher
15:17:17 mailcatcher.1 | ==> smtp://127.0.0.1:1025
15:17:17 mailcatcher.1 | /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/thin-1.5.1/lib/thin/server.rb:104: warning: constant ::Fixnum is deprecated
15:17:17 mailcatcher.1 | ==> http://127.0.0.1:1080
15:17:19 web.1         | I, [2018-05-03T15:17:19.613301 #10343]  INFO -- : listening on addr=0.0.0.0:5000 fd=10
15:17:19 web.1         | I, [2018-05-03T15:17:19.717514 #10343]  INFO -- : master process ready
15:17:19 web.1         | I, [2018-05-03T15:17:19.719006 #10348]  INFO -- : worker=0 ready
15:17:19 web.1         | I, [2018-05-03T15:17:19.719538 #10349]  INFO -- : worker=1 ready
15:17:19 web.1         | I, [2018-05-03T15:17:19.720606 #10350]  INFO -- : worker=2 ready
15:17:27 web.1         | E, [2018-05-03T15:17:27.308713 #10348] ERROR -- : app error: wrong number of arguments (given 16384, expected 0..1) (ArgumentError)
15:17:27 web.1         | E, [2018-05-03T15:17:27.308713 #10350] ERROR -- : app error: wrong number of arguments (given 16384, expected 0..1) (ArgumentError)
15:17:27 web.1         | E, [2018-05-03T15:17:27.309015 #10348] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/unicorn-5.0.1/lib/unicorn/http_request.rb:79:in `kgio_wait_readable'
15:17:27 web.1         | E, [2018-05-03T15:17:27.309115 #10348] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/unicorn-5.0.1/lib/unicorn/http_request.rb:79:in `kgio_read!'
15:17:27 web.1         | E, [2018-05-03T15:17:27.309118 #10350] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/unicorn-5.0.1/lib/unicorn/http_request.rb:79:in `kgio_wait_readable'
15:17:27 web.1         | E, [2018-05-03T15:17:27.309203 #10348] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/unicorn-5.0.1/lib/unicorn/http_request.rb:79:in `read'
15:17:27 web.1         | E, [2018-05-03T15:17:27.309286 #10350] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/unicorn-5.0.1/lib/unicorn/http_request.rb:79:in `kgio_read!'
15:17:27 web.1         | E, [2018-05-03T15:17:27.309378 #10350] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/unicorn-5.0.1/lib/unicorn/http_request.rb:79:in `read'
15:17:27 web.1         | E, [2018-05-03T15:17:27.309350 #10348] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/unicorn-5.0.1/lib/unicorn/http_server.rb:562:in `process_client'
15:17:27 web.1         | E, [2018-05-03T15:17:27.309476 #10350] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/unicorn-5.0.1/lib/unicorn/http_server.rb:562:in `process_client'
15:17:27 web.1         | E, [2018-05-03T15:17:27.309543 #10348] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/unicorn-5.0.1/lib/unicorn/http_server.rb:658:in `worker_loop'
15:17:27 web.1         | E, [2018-05-03T15:17:27.309575 #10350] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/unicorn-5.0.1/lib/unicorn/http_server.rb:658:in `worker_loop'
15:17:27 web.1         | E, [2018-05-03T15:17:27.309641 #10350] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/unicorn-5.0.1/lib/unicorn/http_server.rb:508:in `spawn_missing_workers'
15:17:27 web.1         | E, [2018-05-03T15:17:27.309634 #10348] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/unicorn-5.0.1/lib/unicorn/http_server.rb:508:in `spawn_missing_workers'
15:17:27 web.1         | E, [2018-05-03T15:17:27.309706 #10350] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/unicorn-5.0.1/lib/unicorn/http_server.rb:132:in `start'
15:17:27 web.1         | E, [2018-05-03T15:17:27.309756 #10350] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/unicorn-5.0.1/bin/unicorn:126:in `<top (required)>'
15:17:27 web.1         | E, [2018-05-03T15:17:27.309734 #10348] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/unicorn-5.0.1/lib/unicorn/http_server.rb:132:in `start'
15:17:27 web.1         | E, [2018-05-03T15:17:27.309814 #10350] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/bin/unicorn:23:in `load'
15:17:27 web.1         | E, [2018-05-03T15:17:27.309866 #10350] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/bin/unicorn:23:in `<top (required)>'
15:17:27 web.1         | E, [2018-05-03T15:17:27.309833 #10348] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/unicorn-5.0.1/bin/unicorn:126:in `<top (required)>'
15:17:27 web.1         | E, [2018-05-03T15:17:27.309917 #10350] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/cli/exec.rb:75:in `load'
15:17:27 web.1         | E, [2018-05-03T15:17:27.309964 #10350] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/cli/exec.rb:75:in `kernel_load'
15:17:27 web.1         | E, [2018-05-03T15:17:27.310013 #10350] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/cli/exec.rb:28:in `run'
15:17:27 web.1         | E, [2018-05-03T15:17:27.309950 #10348] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/bin/unicorn:23:in `load'
15:17:27 web.1         | E, [2018-05-03T15:17:27.310100 #10350] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/cli.rb:424:in `exec'
15:17:27 web.1         | E, [2018-05-03T15:17:27.310162 #10350] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
15:17:27 web.1         | E, [2018-05-03T15:17:27.310112 #10348] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/bin/unicorn:23:in `<top (required)>'
15:17:27 web.1         | E, [2018-05-03T15:17:27.310221 #10350] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
15:17:27 web.1         | E, [2018-05-03T15:17:27.310269 #10350] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
15:17:27 web.1         | E, [2018-05-03T15:17:27.310262 #10348] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/cli/exec.rb:75:in `load'
15:17:27 web.1         | E, [2018-05-03T15:17:27.310324 #10350] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/cli.rb:27:in `dispatch'
15:17:27 web.1         | E, [2018-05-03T15:17:27.310395 #10350] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
15:17:27 web.1         | E, [2018-05-03T15:17:27.310398 #10348] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/cli/exec.rb:75:in `kernel_load'
15:17:27 web.1         | E, [2018-05-03T15:17:27.310454 #10350] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/cli.rb:18:in `start'
15:17:27 web.1         | E, [2018-05-03T15:17:27.310503 #10350] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/exe/bundle:30:in `block in <top (required)>'
15:17:27 web.1         | E, [2018-05-03T15:17:27.310566 #10350] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/friendly_errors.rb:122:in `with_friendly_errors'
15:17:27 web.1         | E, [2018-05-03T15:17:27.310627 #10350] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/exe/bundle:22:in `<top (required)>'
15:17:27 web.1         | E, [2018-05-03T15:17:27.310492 #10348] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/cli/exec.rb:28:in `run'
15:17:27 web.1         | E, [2018-05-03T15:17:27.310679 #10350] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/bin/bundle:23:in `load'
15:17:27 web.1         | E, [2018-05-03T15:17:27.310728 #10350] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/bin/bundle:23:in `<main>'
15:17:27 web.1         | E, [2018-05-03T15:17:27.310700 #10348] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/cli.rb:424:in `exec'
15:17:27 web.1         | E, [2018-05-03T15:17:27.310816 #10348] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
15:17:27 web.1         | E, [2018-05-03T15:17:27.310932 #10348] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
15:17:27 web.1         | E, [2018-05-03T15:17:27.310995 #10348] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
15:17:27 web.1         | E, [2018-05-03T15:17:27.311053 #10348] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/cli.rb:27:in `dispatch'
15:17:27 web.1         | E, [2018-05-03T15:17:27.311105 #10348] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
15:17:27 web.1         | E, [2018-05-03T15:17:27.311156 #10348] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/cli.rb:18:in `start'
15:17:27 web.1         | E, [2018-05-03T15:17:27.311204 #10348] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/exe/bundle:30:in `block in <top (required)>'
15:17:27 web.1         | E, [2018-05-03T15:17:27.311250 #10348] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/friendly_errors.rb:122:in `with_friendly_errors'
15:17:27 web.1         | E, [2018-05-03T15:17:27.311296 #10348] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/exe/bundle:22:in `<top (required)>'
15:17:27 web.1         | E, [2018-05-03T15:17:27.311342 #10348] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/bin/bundle:23:in `load'
15:17:27 web.1         | E, [2018-05-03T15:17:27.311387 #10348] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/bin/bundle:23:in `<main>'
15:17:27 web.1         | E, [2018-05-03T15:17:27.465152 #10349] ERROR -- : app error: wrong number of arguments (given 16384, expected 0..1) (ArgumentError)
15:17:27 web.1         | E, [2018-05-03T15:17:27.465690 #10349] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/unicorn-5.0.1/lib/unicorn/http_request.rb:79:in `kgio_wait_readable'
15:17:27 web.1         | E, [2018-05-03T15:17:27.465879 #10349] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/unicorn-5.0.1/lib/unicorn/http_request.rb:79:in `kgio_read!'
15:17:27 web.1         | E, [2018-05-03T15:17:27.466010 #10349] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/unicorn-5.0.1/lib/unicorn/http_request.rb:79:in `read'
15:17:27 web.1         | E, [2018-05-03T15:17:27.466110 #10349] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/unicorn-5.0.1/lib/unicorn/http_server.rb:562:in `process_client'
15:17:27 web.1         | E, [2018-05-03T15:17:27.466207 #10349] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/unicorn-5.0.1/lib/unicorn/http_server.rb:658:in `worker_loop'
15:17:27 web.1         | E, [2018-05-03T15:17:27.466391 #10349] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/unicorn-5.0.1/lib/unicorn/http_server.rb:508:in `spawn_missing_workers'
15:17:27 web.1         | E, [2018-05-03T15:17:27.466506 #10349] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/unicorn-5.0.1/lib/unicorn/http_server.rb:132:in `start'
15:17:27 web.1         | E, [2018-05-03T15:17:27.466613 #10349] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/unicorn-5.0.1/bin/unicorn:126:in `<top (required)>'
15:17:27 web.1         | E, [2018-05-03T15:17:27.466722 #10349] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/bin/unicorn:23:in `load'
15:17:27 web.1         | E, [2018-05-03T15:17:27.466824 #10349] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/bin/unicorn:23:in `<top (required)>'
15:17:27 web.1         | E, [2018-05-03T15:17:27.466924 #10349] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/cli/exec.rb:75:in `load'
15:17:27 web.1         | E, [2018-05-03T15:17:27.467046 #10349] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/cli/exec.rb:75:in `kernel_load'
15:17:27 web.1         | E, [2018-05-03T15:17:27.467148 #10349] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/cli/exec.rb:28:in `run'
15:17:27 web.1         | E, [2018-05-03T15:17:27.467283 #10349] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/cli.rb:424:in `exec'
15:17:27 web.1         | E, [2018-05-03T15:17:27.467382 #10349] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
15:17:27 web.1         | E, [2018-05-03T15:17:27.467472 #10349] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
15:17:27 web.1         | E, [2018-05-03T15:17:27.467540 #10349] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
15:17:27 web.1         | E, [2018-05-03T15:17:27.467627 #10349] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/cli.rb:27:in `dispatch'
15:17:27 web.1         | E, [2018-05-03T15:17:27.467705 #10349] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
15:17:27 web.1         | E, [2018-05-03T15:17:27.467771 #10349] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/cli.rb:18:in `start'
15:17:27 web.1         | E, [2018-05-03T15:17:27.467963 #10349] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/exe/bundle:30:in `block in <top (required)>'
15:17:27 web.1         | E, [2018-05-03T15:17:27.468155 #10349] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/friendly_errors.rb:122:in `with_friendly_errors'
15:17:27 web.1         | E, [2018-05-03T15:17:27.468339 #10349] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/exe/bundle:22:in `<top (required)>'
15:17:27 web.1         | E, [2018-05-03T15:17:27.468524 #10349] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/bin/bundle:23:in `load'
15:17:27 web.1         | E, [2018-05-03T15:17:27.468691 #10349] ERROR -- : /Users/jesse/.rbenv/versions/2.5.0/bin/bundle:23:in `<main>'

image precompile issues

Hello,

First, thank you for making this app open source! It has many useful application.

I have an issue when I tried to do asset precompile.

It give this error message:
taufiqm-> rake assets:precompile
/home/taufiqm/.rvm/rubies/ruby-2.0.0-p247/bin/ruby /home/taufiqm/.rvm/gems/ruby-2.0.0-p247/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets
rake aborted!
assets/refer/20percent.jpg isn't precompiled
...

Have any idea what might cause this?

EDIT:
Want to add that it works if do
config.assets.initialize_on_precompile = false
in my config file. Still, would appreciate if somebody could explain the cause

Precompilation fails

This is the same issue raise in 2#!

The two solutions provided there doesn't fix the issue for me:
Solution 1 was to turn on user-env-compile on heroku by issuing
heroku labs:enable user-env-compile
But user-env-compile is deprecated and so can't use that.

Solution 2 was by adding the following line to production.rb
config.assets.initialize_on_precompile = false
Tried that also, but doesn't work

$ git push heroku 
Counting objects: 192, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (154/154), done.
Writing objects: 100% (192/192), 2.47 MiB | 7.00 KiB/s, done.
Total 192 (delta 36), reused 175 (delta 26)
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> Ruby app detected
remote: -----> Compiling Ruby/Rails
remote: -----> Using Ruby version: ruby-2.0.0
remote: -----> Installing dependencies using 1.6.3
remote:        Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
remote:        Fetching gem metadata from https://rubygems.org/...........
remote:        Installing multi_json 1.6.1
remote:        Installing i18n 0.6.4
remote:        Installing rake 10.0.3
remote:        Installing builder 3.0.4
remote:        Installing journey 1.0.4
remote:        Installing erubis 2.7.0
remote:        Installing rack 1.4.5
remote:        Installing hike 1.2.1
remote:        Installing tilt 1.3.4
remote:        Installing polyglot 0.3.3
remote:        Installing mime-types 1.21
remote:        Installing sass 3.2.5
remote:        Installing thor 0.17.0
remote:        Using json 1.7.7
remote:        Installing orm_adapter 0.4.0
remote:        Installing fastercsv 1.5.5
remote:        Installing has_scope 0.5.1
remote:        Installing arel 3.0.2
remote:        Using bundler 1.6.3
remote:        Installing coffee-script-source 1.4.0
remote:        Installing tzinfo 0.3.36
remote:        Installing bcrypt-ruby 3.0.1
remote:        Installing raindrops 0.10.0
remote:        Installing execjs 1.4.0
remote:        Installing activesupport 3.2.11
remote:        Installing rack-cache 1.2
remote:        Installing rack-test 0.6.2
remote:        Installing rack-ssl 1.3.3
remote:        Installing warden 1.2.1
remote:        Installing sprockets 2.2.2
remote:        Installing treetop 1.4.12
remote:        Installing bourbon 3.0.1
remote:        Installing rdoc 3.12.2
remote:        Installing coffee-script 2.2.0
remote:        Installing uglifier 1.3.0
remote:        Installing activemodel 3.2.11
remote:        Installing arbre 1.0.1
remote:        Installing delayed_job 3.0.5
remote:        Installing mail 2.4.4
remote:        Installing actionpack 3.2.11
remote:        Installing pg 0.14.1
remote:        Installing activerecord 3.2.11
remote:        Installing activeresource 3.2.11
remote:        Installing actionmailer 3.2.11
remote:        Installing railties 3.2.11
remote:        Installing formtastic 2.2.1
remote:        Installing polyamorous 0.5.0
remote:        Installing kaminari 0.14.1
remote:        Installing delayed_job_active_record 0.4.4
remote:        Installing responders 0.9.3
remote:        Installing kgio 2.8.0
remote:        Installing devise 2.2.2
remote:        Installing rails 3.2.11
remote:        Installing coffee-rails 3.2.2
remote:        Installing jquery-rails 2.2.0
remote:        Installing meta_search 1.1.3
remote:        Installing inherited_resources 1.3.1
remote:        Installing sass-rails 3.2.6
remote:        Installing activeadmin 0.5.1
remote:        Installing unicorn 4.6.0
remote:        Your bundle is complete!
remote:        Gems in the groups development and test were not installed.
remote:        It was installed into ./vendor/bundle
remote:        Post-install message from rdoc:
remote:        Depending on your version of ruby, you may need to install ruby rdoc/ri data:
remote:        <= 1.8.6 : unsupported
remote:        = 1.8.7 : gem install rdoc-data; rdoc-data --install
remote:        = 1.9.1 : gem install rdoc-data; rdoc-data --install
remote:        >= 1.9.2 : nothing to do! Yay!
remote:        Post-install message from meta_search:
remote:        *** Thanks for installing MetaSearch! ***
remote:        Be sure to check out http://metautonomo.us/projects/metasearch/ for a
remote:        walkthrough of MetaSearch's features, and click the donate button if
remote:        you're feeling especially appreciative. It'd help me justify this
remote:        "open source" stuff to my lovely wife. :)
remote:        Bundle completed (51.02s)
remote:        Cleaning up the bundler cache.
remote: -----> Writing config/database.yml to read from DATABASE_URL
remote: -----> Preparing app for Rails asset pipeline
remote:        Running: rake assets:precompile
remote:        DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/Rakefile:7)
remote:        DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/Rakefile:7)
remote:        rake aborted!
remote:        refer/[email protected] isn't precompiled
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.11/lib/sprockets/helpers/rails_helper.rb:142:in `digest_for'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.11/lib/sprockets/helpers/rails_helper.rb:151:in `rewrite_asset_path'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.11/lib/action_view/asset_paths.rb:27:in `compute_public_path'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.11/lib/sprockets/helpers/rails_helper.rb:56:in `asset_path'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/app/models/user.rb:18:in `<class:User>'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/app/models/user.rb:1:in `<top (required)>'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `block in require'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:236:in `load_dependency'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:359:in `require_or_load'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:502:in `load_missing_constant'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:192:in `block in const_missing'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:190:in `each'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:190:in `const_missing'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/app/admin/users.rb:2:in `<top (required)>'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:245:in `load'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:245:in `block in load'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:236:in `load_dependency'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:245:in `load'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/activeadmin-0.5.1/lib/active_admin/application.rb:190:in `block in load!'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/activeadmin-0.5.1/lib/active_admin/application.rb:190:in `each'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/activeadmin-0.5.1/lib/active_admin/application.rb:190:in `load!'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/activeadmin-0.5.1/lib/active_admin/application.rb:213:in `routes'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/activeadmin-0.5.1/lib/active_admin.rb:79:in `routes'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/config/routes.rb:3:in `block in <top (required)>'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.11/lib/action_dispatch/routing/route_set.rb:282:in `instance_exec'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.11/lib/action_dispatch/routing/route_set.rb:282:in `eval_block'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.11/lib/action_dispatch/routing/route_set.rb:260:in `draw'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/config/routes.rb:1:in `<top (required)>'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:245:in `load'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:245:in `block in load'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:236:in `load_dependency'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:245:in `load'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/railties-3.2.11/lib/rails/application/routes_reloader.rb:40:in `block in load_paths'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/railties-3.2.11/lib/rails/application/routes_reloader.rb:40:in `each'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/railties-3.2.11/lib/rails/application/routes_reloader.rb:40:in `load_paths'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/railties-3.2.11/lib/rails/application/routes_reloader.rb:16:in `reload!'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/railties-3.2.11/lib/rails/application.rb:108:in `reload_routes!'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/activeadmin-0.5.1/lib/active_admin/reloader.rb:34:in `reload!'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/activeadmin-0.5.1/lib/active_admin/reloader.rb:61:in `block in attach!'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:429:in `_run__2145492044205622324__prepare__3497334373015482810__callbacks'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:405:in `__run_callback'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:385:in `_run_prepare_callbacks'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:81:in `run_callbacks'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.11/lib/action_dispatch/middleware/reloader.rb:74:in `prepare!'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.11/lib/action_dispatch/middleware/reloader.rb:48:in `prepare!'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/railties-3.2.11/lib/rails/application/finisher.rb:47:in `block in <module:Finisher>'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/railties-3.2.11/lib/rails/initializable.rb:30:in `instance_exec'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/railties-3.2.11/lib/rails/initializable.rb:30:in `run'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/railties-3.2.11/lib/rails/initializable.rb:55:in `block in run_initializers'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/railties-3.2.11/lib/rails/initializable.rb:54:in `each'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/railties-3.2.11/lib/rails/initializable.rb:54:in `run_initializers'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/railties-3.2.11/lib/rails/application.rb:136:in `initialize!'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/railties-3.2.11/lib/rails/railtie/configurable.rb:30:in `method_missing'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/config/environment.rb:5:in `<top (required)>'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `block in require'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:236:in `load_dependency'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/railties-3.2.11/lib/rails/application.rb:103:in `require_environment!'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/railties-3.2.11/lib/rails/application.rb:297:in `block (2 levels) in initialize_tasks'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.11/lib/sprockets/assets.rake:93:in `block (2 levels) in <top (required)>'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.11/lib/sprockets/assets.rake:60:in `block (3 levels) in <top (required)>'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.11/lib/sprockets/assets.rake:23:in `invoke_or_reboot_rake_task'
remote:        /tmp/build_61e179db3aea7dcc1d97670a3642d6c4/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.11/lib/sprockets/assets.rake:29:in `block (2 levels) in <top (required)>'
remote:        Tasks: TOP => environment
remote:        (See full trace by running task with --trace)
remote:  !
remote:  !     Precompiling assets failed.
remote:  !
remote: 
remote:  !     Push rejected, failed to compile Ruby app

Any more help would be appreciated.

config.ended

Hi there,
I changed config.ended to true just to see how it worked. Then I changed it back to false, but the application is still showing that it has ended. How do I turn it back on again?

requirements for the prelaunchr?

Hey! i've tried installing your launcher on both my ubuntu 14 vps, heroku and local with no luck so far.

So i would like to ask you: what would i need to install on my vps to run the prelauncher? like postgresql, ruby etc.? or would you recommend heroku? and what would i need in my virtualbox to build the app there and then push to heroku?
would be forever grateful if you could help me out!
thanks!

Syntax errors in email templates

There seem to be syntax errors in the e-mail template:

[Worker(host:26be2f4592b8 pid:1)] Starting job worker
[Worker(host:26be2f4592b8 pid:1)] Class#signup_email failed with ActionView::Template::Error: /opt/app/app/views/user_mailer/signup_email.html.erb:20: syntax error, unexpected '}', expecting ')'
...ion_mailer.default_url_options} );@output_buffer.safe_concat...
...                               ^
/opt/app/app/views/user_mailer/signup_email.html.erb:36: syntax error, unexpected '}', expecting ')'
...ion_mailer.default_url_options} );@output_buffer.safe_concat...
...                               ^
/opt/app/app/views/user_mailer/signup_email.html.erb:45: syntax error, unexpected '}', expecting ')'
...ion_mailer.default_url_options} );@output_buffer.safe_concat...
...                               ^
/opt/app/app/views/user_mailer/signup_email.html.erb:66: syntax error, unexpected '}', expecting ')'
...ion_mailer.default_url_options} );@output_buffer.safe_concat...
...                               ^
/opt/app/app/views/user_mailer/signup_email.html.erb:72: syntax error, unexpected '}', expecting ')'
...ion_mailer.default_url_options} );@output_buffer.safe_concat...
...                               ^
/opt/app/app/views/user_mailer/signup_email.html.erb:101: syntax error, unexpected keyword_ensure, expecting ')'
/opt/app/app/views/user_mailer/signup_email.html.erb:103: syntax error, unexpected keyword_end, expecting ')' - 0 failed attempts
[Worker(host:26be2f4592b8 pid:1)] 1 jobs processed at 4.1764 j/s, 1 failed ...

A question about collected emails.

Hey! i was just wondering where the entered emails gets saved? should an autoresponder be connected to the app? does the database command save ALL emails to the csv? or only the ones who won something? thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.