excid3 / jumpstart Goto Github PK
View Code? Open in Web Editor NEWEasily jumpstart a new Rails application with a bunch of great features by default
Home Page: http://jumpstartrails.com
License: MIT License
Easily jumpstart a new Rails application with a bunch of great features by default
Home Page: http://jumpstartrails.com
License: MIT License
Chris, thanks for this.
I cloned this into a rvm gemset (ruby-2.5.1) and (not surprisingly) the install will fail if bundler isn't already installed.
Rerunning the install, it got to "generate devise:install" and bombed. The error was, "...rvm/gems/ruby-2.5.1/gems/msgpack-1.2.4/lib/msgpack.rb:11:in `require': incompatible library version - ...rvm/gems/ruby-2.5.1/gems/msgpack-1.2.4/lib/msgpack/msgpack.bundle (LoadError)". Not sure of the root of the conflict, but running rvm gemset empty
and then gem install bundler
, gem install rails
allowed the script to finally complete without bombing.
Then I attempted to start the server and it failed looking for config/webpacker.yml. The error was, "RAILS_ENV=development environment is not defined in config/webpacker.yml, falling back to production environment". Looking back at the install output, this was also shown right after "generate devise:install". I didn't have yarn installed at that point; which I presume is why it didn't get installed during the script. I'm on OSX so I ran brew install yarn
and then needed to run rails webpacker:install
after that. Golden from that point forward.
Hope this helps. Thanks again!
Hello Christ, I dont know why it worked awesome on local machine but fail to push to heroku, any idea?
Ps: I have alread installed addon redistogo on heroku but still dont work.
This free Ruby Tapas episode explains the idea better than I can in text, so give it a watch!
https://www.rubytapas.com/2015/10/01/episode-346-user-model/
This issue is for discussion before I open up a PR, to see if anyone else thinks this could be done in a sensible way for apps using Jumpstart.
I just started a new app and received the following error when trying to run the server:
Please add 'devise :omniauthable' to the `User` model
Adding omniauthable to the User model resolved.
Should we have every model use paranoia?
Leave out the javascript for now?
Error after saving the configuration.
17:32:40 web.1 | Started GET "/" for ::1 at 2019-06-29 17:32:40 +0300
17:32:40 web.1 | Processing by StaticController#index as HTML
17:32:40 web.1 | Rendering static/index.html.erb within layouts/application
17:32:40 web.1 | Rendered static/index.html.erb within layouts/application (Duration: 1.8ms | Allocations: 368)
17:32:44 web.1 | Rendered shared/_favicons.html.erb (Duration: 17.5ms | Allocations: 8484)
17:32:44 web.1 | Rendered shared/_payments_dependencies.html.erb (Duration: 2.2ms | Allocations: 1831)
17:32:44 web.1 | Rendered shared/_flash.html.erb (Duration: 0.8ms | Allocations: 195)
17:32:44 web.1 | Rendered shared/_left_nav.html.erb (Duration: 0.5ms | Allocations: 92)
17:32:44 web.1 | Announcement Load (1.3ms) SELECT "announcements".* FROM "announcements" ORDER BY "announcements"."published_at" DESC LIMIT $1 [["LIMIT", 1]]
17:32:44 web.1 | ↳ app/helpers/announcements_helper.rb:19:in `unread_announcements_class'
17:32:44 web.1 | Rendered shared/_right_nav.html.erb (Duration: 11.9ms | Allocations: 2390)
17:32:44 web.1 | Rendered shared/_navbar.html.erb (Duration: 18.6ms | Allocations: 5352)
17:32:44 web.1 | Rendered shared/_footer.html.erb (Duration: 6.0ms | Allocations: 2808)
17:32:44 web.1 | Completed 200 OK in 3720ms (Views: 3698.9ms | ActiveRecord: 3.4ms | Allocations: 2336599)
17:32:44 web.1 |
17:32:44 web.1 |
17:32:49 web.1 | Started GET "/jumpstart" for ::1 at 2019-06-29 17:32:49 +0300
17:32:49 web.1 | Processing by Jumpstart::AdminController#show as HTML
17:32:49 web.1 | Rendering lib/jumpstart/app/views/jumpstart/admin/show.html.erb within layouts/jumpstart/application
17:32:49 web.1 | Rendered lib/jumpstart/app/views/jumpstart/admin/_payments.html.erb (Duration: 1.7ms | Allocations: 120)
17:32:49 web.1 | Rendered lib/jumpstart/app/views/jumpstart/admin/show.html.erb within layouts/jumpstart/application (Duration: 8.7ms | Allocations: 2192)
17:32:49 web.1 | Completed 200 OK in 16ms (Views: 13.3ms | ActiveRecord: 0.0ms | Allocations: 5301)
17:32:49 web.1 |
17:32:49 web.1 |
17:32:51 web.1 | Started POST "/jumpstart/config" for ::1 at 2019-06-29 17:32:51 +0300
17:32:51 web.1 | Processing by Jumpstart::ConfigsController#create as JS
17:32:51 web.1 | Parameters: {"authenticity_token"=>"WXnkzfhlhWcrruO4ynYKUYaIExjUzYh3INRRSsZz2WLK26QKeBXtJ0SS4WbNYLTlxp/+aGy7XOFL7NdAMdmllw==", "jumpstart_configuration"=>{"application_name"=>"[FILTERED]", "business_name"=>"[FILTERED]", "business_address"=>"2145 Hamilton Avenue San Jose, California 95125\n", "support_email"=>"[FILTERED]", "background_job_processor"=>"delayed_job", "email_provider"=>"[FILTERED]", "domain"=>"ebay-repricer.com", "default_from_email"=>"[FILTERED]", "payment_processors"=>["paypal"]}, "button"=>""}
17:32:51 web.1 | The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
17:32:51 web.1 | Using rake 12.3.2
17:32:51 web.1 | Using concurrent-ruby 1.1.5
17:32:51 web.1 | Using i18n 1.6.0
17:32:51 web.1 | Using minitest 5.11.3
17:32:51 web.1 | Using thread_safe 0.3.6
17:32:51 web.1 | Using tzinfo 1.2.5
17:32:51 web.1 | Using zeitwerk 2.1.6
17:32:51 web.1 | Using activesupport 6.0.0.rc1
17:32:51 web.1 | Using builder 3.2.3
17:32:51 web.1 | Using erubi 1.8.0
17:32:51 web.1 | Using mini_portile2 2.4.0
17:32:51 web.1 | Using nokogiri 1.10.3
17:32:51 web.1 | Using rails-dom-testing 2.0.3
17:32:51 web.1 | Using crass 1.0.4
17:32:51 web.1 | Using loofah 2.2.3
17:32:51 web.1 | Using rails-html-sanitizer 1.0.4
17:32:51 web.1 | Using actionview 6.0.0.rc1
17:32:51 web.1 | Using rack 2.0.7
17:32:51 web.1 | Using rack-test 1.1.0
17:32:51 web.1 | Using actionpack 6.0.0.rc1
17:32:51 web.1 | Using nio4r 2.3.1
17:32:51 web.1 | Using websocket-extensions 0.1.4
17:32:51 web.1 | Using websocket-driver 0.7.1
17:32:51 web.1 | Using actioncable 6.0.0.rc1
17:32:51 web.1 | Using globalid 0.4.2
17:32:51 web.1 | Using activejob 6.0.0.rc1
17:32:51 web.1 | Using activemodel 6.0.0.rc1
17:32:51 web.1 | Using activerecord 6.0.0.rc1
17:32:51 web.1 | Using mimemagic 0.3.3
17:32:51 web.1 | Using marcel 0.3.3
17:32:51 web.1 | Using activestorage 6.0.0.rc1
17:32:51 web.1 | Using mini_mime 1.0.1
17:32:51 web.1 | Using mail 2.7.1
17:32:51 web.1 | Using actionmailbox 6.0.0.rc1
17:32:51 web.1 | Using actionmailer 6.0.0.rc1
17:32:51 web.1 | Using actiontext 6.0.0.rc1
17:32:51 web.1 | Using public_suffix 3.1.0
17:32:51 web.1 | Using addressable 2.6.0
17:32:51 web.1 | Using execjs 2.7.0
17:32:51 web.1 | Using autoprefixer-rails 9.6.0
17:32:51 web.1 | Using method_source 0.9.2
17:32:51 web.1 | Using thor 0.20.3
17:32:51 web.1 | Using railties 6.0.0.rc1
17:32:51 web.1 | Using momentjs-rails 2.20.1
17:32:51 web.1 | Using datetime_picker_rails 0.0.7
17:32:51 web.1 | Using jquery-rails 4.3.5
17:32:51 web.1 | Using kaminari-core 1.1.1
17:32:51 web.1 | Using kaminari-actionview 1.1.1
17:32:51 web.1 | Using kaminari-activerecord 1.1.1
17:32:51 web.1 | Using kaminari 1.1.1
17:32:51 web.1 | Using ffi 1.11.1
17:32:51 web.1 | Using sassc 2.0.1
17:32:51 web.1 | Using sprockets 3.7.2
17:32:51 web.1 | Using sprockets-rails 3.2.1
17:32:51 web.1 | Using tilt 2.0.9
17:32:51 web.1 | Using sassc-rails 2.1.1
17:32:51 web.1 | Using selectize-rails 0.12.6
17:32:51 web.1 | Using administrate 0.11.0 from https://github.com/excid3/administrate.git (at jumpstart@66c6d33)
17:32:51 web.1 | Using annotate 2.7.5
17:32:51 web.1 | Using encryptor 3.0.0
17:32:51 web.1 | Using attr_encrypted 3.1.0
17:32:51 web.1 | Using bcrypt 3.1.13
17:32:51 web.1 | Using bindex 0.7.0
17:32:51 web.1 | Using msgpack 1.2.10
17:32:51 web.1 | Using bootsnap 1.4.4
17:32:51 web.1 | Using braintree 2.97.0
17:32:51 web.1 | Using brakeman 4.5.1
17:32:51 web.1 | Using bundler 1.17.3
17:32:51 web.1 | Using bundler-audit 0.6.1
17:32:51 web.1 | Using byebug 11.0.1
17:32:51 web.1 | Using regexp_parser 1.5.1
17:32:51 web.1 | Using xpath 3.2.0
17:32:51 web.1 | Using capybara 3.24.0
17:32:51 web.1 | Using childprocess 1.0.1
17:32:51 web.1 | Using chronic 0.10.2
17:32:51 web.1 | Using coderay 1.1.2
17:32:51 web.1 | Using daemons 1.3.1
17:32:51 web.1 | Using delayed_job 2.0.6
17:32:51 web.1 | Using orm_adapter 0.5.0
17:32:51 web.1 | Using responders 2.4.1
17:32:51 web.1 | Using warden 1.2.8
17:32:51 web.1 | Using devise 4.6.2
17:32:51 web.1 | Using devise_invitable 2.0.1
17:32:51 web.1 | Using devise_masquerade 0.6.5
17:32:51 web.1 | Using hashie 3.6.0
17:32:51 web.1 | Using mini_magick 4.9.3
17:32:51 web.1 | Using ruby-vips 2.0.14
17:32:51 web.1 | Using image_processing 1.9.0
17:32:51 web.1 | Using inline_svg 1.5.2
17:32:51 web.1 | Using jbuilder 2.9.1
17:32:51 web.1 | Using rails 6.0.0.rc1
17:32:51 web.1 | Using jumpstart 0.1.0 from source at `lib/jumpstart`
17:32:51 web.1 | Using launchy 2.4.3
17:32:51 web.1 | Using letter_opener 1.7.0
17:32:51 web.1 | Using letter_opener_web 1.3.4
17:32:51 web.1 | Using rb-fsevent 0.10.3
17:32:51 web.1 | Using rb-inotify 0.10.0
17:32:51 web.1 | Using ruby_dep 1.5.0
17:32:51 web.1 | Using listen 3.1.5
17:32:51 web.1 | Using local_time 2.1.0
17:32:51 web.1 | Using name_of_person 1.1.1
17:32:51 web.1 | Using omniauth 1.9.0
17:32:51 web.1 | Using pagy 3.3.0
17:32:51 web.1 | Using pay 1.0.0
17:32:51 web.1 | Using pdf-core 0.7.0
17:32:51 web.1 | Using pg 1.1.4
17:32:51 web.1 | Using ttfunk 1.5.1
17:32:51 web.1 | Using prawn 2.2.2
17:32:51 web.1 | Using prawn-table 0.2.2
17:32:51 web.1 | Using pry 0.12.2
17:32:51 web.1 | Using pry-rails 0.3.9
17:32:51 web.1 | Using puma 3.12.1
17:32:51 web.1 | Using rack-proxy 0.6.5
17:32:51 web.1 | Using receipts 0.2.2
17:32:51 web.1 | Using redis 4.1.2
17:32:51 web.1 | Using rubyzip 1.2.3
17:32:51 web.1 | Using sass-listen 4.0.0
17:32:51 web.1 | Using sass 3.7.4
17:32:51 web.1 | Using sass-rails 5.0.7
17:32:51 web.1 | Using selenium-webdriver 3.142.3
17:32:51 web.1 | Using spring 2.1.0
17:32:51 web.1 | Using spring-watcher-listen 2.0.1
17:32:51 web.1 | Using strong_migrations 0.4.0
17:32:51 web.1 | Using turbolinks-source 5.2.0
17:32:51 web.1 | Using turbolinks 5.2.0
17:32:51 web.1 | Using turbolinks_render 0.9.15
17:32:51 web.1 | Using web-console 4.0.0
17:32:51 web.1 | Using webdrivers 4.0.1
17:32:51 web.1 | Using webpacker 4.0.7
17:32:51 web.1 | Using whenever 1.0.0
17:32:51 web.1 | Bundle complete! 42 Gemfile dependencies, 130 gems now installed.
17:32:51 web.1 | Use `bundle info [gemname]` to see where a bundled gem is installed.
17:32:54 web.1 | rails aborted!
17:32:54 web.1 | NameError: uninitialized constant ActiveSupport::BasicObject
17:32:54 web.1 | /Users/ohaddahan/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/active_support.rb:60:in `block in load_missing_constant'
17:32:54 web.1 | /Users/ohaddahan/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/active_support.rb:16:in `allow_bootsnap_retry'
17:32:54 web.1 | /Users/ohaddahan/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/active_support.rb:59:in `load_missing_constant'
17:32:54 web.1 | /Users/ohaddahan/.rvm/gems/ruby-2.6.3/gems/delayed_job-2.0.6/lib/delayed/message_sending.rb:2:in `<module:Delayed>'
17:32:54 web.1 | /Users/ohaddahan/.rvm/gems/ruby-2.6.3/gems/delayed_job-2.0.6/lib/delayed/message_sending.rb:1:in `<main>'
17:32:54 web.1 | /Users/ohaddahan/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
17:32:54 web.1 | /Users/ohaddahan/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
17:32:54 web.1 | /Users/ohaddahan/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
17:32:54 web.1 | /Users/ohaddahan/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
17:32:54 web.1 | /Users/ohaddahan/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
17:32:54 web.1 | /Users/ohaddahan/.rvm/gems/ruby-2.6.3/gems/delayed_job-2.0.6/lib/delayed_job.rb:3:in `<main>'
17:32:54 web.1 | /Users/ohaddahan/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
17:32:54 web.1 | /Users/ohaddahan/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
17:32:54 web.1 | /Users/ohaddahan/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
17:32:54 web.1 | /Users/ohaddahan/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
17:32:54 web.1 | /Users/ohaddahan/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
17:32:54 web.1 | /Users/ohaddahan/Projects/repricer/config/application.rb:7:in `<main>'
17:32:54 web.1 | /Users/ohaddahan/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
17:32:54 web.1 | /Users/ohaddahan/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
17:32:54 web.1 | /Users/ohaddahan/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
17:32:54 web.1 | /Users/ohaddahan/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
17:32:54 web.1 | /Users/ohaddahan/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
17:32:54 web.1 | /Users/ohaddahan/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:48:in `require_relative'
17:32:54 web.1 | /Users/ohaddahan/Projects/repricer/Rakefile:4:in `<main>'
17:32:54 web.1 | /Users/ohaddahan/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:54:in `load'
17:32:54 web.1 | /Users/ohaddahan/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:54:in `load'
17:32:54 web.1 | /Users/ohaddahan/.rvm/gems/ruby-2.6.3/gems/railties-6.0.0.rc1/lib/rails/commands/rake/rake_command.rb:22:in `block in perform'
17:32:54 web.1 | /Users/ohaddahan/.rvm/gems/ruby-2.6.3/gems/railties-6.0.0.rc1/lib/rails/commands/rake/rake_command.rb:20:in `perform'
17:32:54 web.1 | /Users/ohaddahan/.rvm/gems/ruby-2.6.3/gems/railties-6.0.0.rc1/lib/rails/command.rb:48:in `invoke'
17:32:54 web.1 | /Users/ohaddahan/.rvm/gems/ruby-2.6.3/gems/railties-6.0.0.rc1/lib/rails/commands.rb:18:in `<main>'
17:32:54 web.1 | /Users/ohaddahan/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
17:32:54 web.1 | /Users/ohaddahan/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
17:32:54 web.1 | /Users/ohaddahan/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
17:32:54 web.1 | /Users/ohaddahan/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
17:32:54 web.1 | /Users/ohaddahan/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
17:32:54 web.1 | /Users/ohaddahan/Projects/repricer/bin/rails:9:in `<top (required)>'
17:32:54 web.1 | /Users/ohaddahan/.rvm/gems/ruby-2.6.3/gems/spring-2.1.0/lib/spring/client/rails.rb:28:in `load'
17:32:54 web.1 | /Users/ohaddahan/.rvm/gems/ruby-2.6.3/gems/spring-2.1.0/lib/spring/client/rails.rb:28:in `call'
17:32:54 web.1 | /Users/ohaddahan/.rvm/gems/ruby-2.6.3/gems/spring-2.1.0/lib/spring/client/command.rb:7:in `call'
17:32:54 web.1 | /Users/ohaddahan/.rvm/gems/ruby-2.6.3/gems/spring-2.1.0/lib/spring/client.rb:30:in `run'
17:32:54 web.1 | /Users/ohaddahan/.rvm/gems/ruby-2.6.3/gems/spring-2.1.0/bin/spring:49:in `<top (required)>'
17:32:54 web.1 | /Users/ohaddahan/.rvm/gems/ruby-2.6.3/gems/spring-2.1.0/lib/spring/binstub.rb:11:in `load'
17:32:54 web.1 | /Users/ohaddahan/.rvm/gems/ruby-2.6.3/gems/spring-2.1.0/lib/spring/binstub.rb:11:in `<top (required)>'
17:32:54 web.1 | /Users/ohaddahan/Projects/repricer/bin/spring:15:in `require'
17:32:54 web.1 | /Users/ohaddahan/Projects/repricer/bin/spring:15:in `<top (required)>'
17:32:54 web.1 | bin/rails:3:in `load'
17:32:54 web.1 | bin/rails:3:in `<main>'
17:32:54 web.1 | (See full trace by running task with --trace)
17:32:54 web.1 | Rendering lib/jumpstart/app/views/jumpstart/configs/create.js.erb
17:32:54 web.1 | Rendered lib/jumpstart/app/views/jumpstart/configs/create.js.erb (Duration: 0.1ms | Allocations: 4)
17:32:54 web.1 | Completed 200 OK in 3319ms (Views: 0.9ms | ActiveRecord: 0.0ms | Allocations: 3020)
Trying to deploy to hatchbox with a vanilla version of the jumpstart template but it keeps timing out. When I check the puma logs, I see this
/app/controllers/concerns/administrate/punditize.rb to define constant Administrate::Punditize, but didn't
It runs fine locally and I don't see anything in the gitignore file that would remove a concern file.
The template hangs on generate devise:install
for me. I had to add run 'spring stop'
to the template before it would successfully complete.
I'm on rails 5.2.0.rc2 and ruby 2.5.0. I'm just getting back into rails dev after years away, so I may be missing something.
Waiting on a few gems to be upgraded with Rails 6 support.
Hello, the generator breaks after rails webpacker:install
. Is there another way to install it without errors, should I have a specific Ruby / Rails version?
After removing the failed new app with rm -rf myapp2
, I can use the same name myapp2
because it will stuck on devise:install
.
arks-MacBook-Pro% rails new myapp2 -d postgresql -m template.rb
create
create README.md
create Rakefile
create config.ru
create .gitignore
create Gemfile
run git init from "."
Initialized empty Git repository in /Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/.git/
create app
create app/assets/config/manifest.js
create app/assets/javascripts/application.js
create app/assets/javascripts/cable.js
create app/assets/stylesheets/application.css
create app/channels/application_cable/channel.rb
create app/channels/application_cable/connection.rb
create app/controllers/application_controller.rb
create app/helpers/application_helper.rb
create app/jobs/application_job.rb
create app/mailers/application_mailer.rb
create app/models/application_record.rb
create app/views/layouts/application.html.erb
create app/views/layouts/mailer.html.erb
create app/views/layouts/mailer.text.erb
create app/assets/images/.keep
create app/assets/javascripts/channels
create app/assets/javascripts/channels/.keep
create app/controllers/concerns/.keep
create app/models/concerns/.keep
create bin
create bin/bundle
create bin/rails
create bin/rake
create bin/setup
create bin/update
create bin/yarn
create config
create config/routes.rb
create config/application.rb
create config/environment.rb
create config/secrets.yml
create config/cable.yml
create config/puma.rb
create config/spring.rb
create config/environments
create config/environments/development.rb
create config/environments/production.rb
create config/environments/test.rb
create config/initializers
create config/initializers/application_controller_renderer.rb
create config/initializers/assets.rb
create config/initializers/backtrace_silencers.rb
create config/initializers/cookies_serializer.rb
create config/initializers/cors.rb
create config/initializers/filter_parameter_logging.rb
create config/initializers/inflections.rb
create config/initializers/mime_types.rb
create config/initializers/new_framework_defaults_5_1.rb
create config/initializers/wrap_parameters.rb
create config/locales
create config/locales/en.yml
create config/boot.rb
create config/database.yml
create db
create db/seeds.rb
create lib
create lib/tasks
create lib/tasks/.keep
create lib/assets
create lib/assets/.keep
create log
create log/.keep
create public
create public/404.html
create public/422.html
create public/500.html
create public/apple-touch-icon-precomposed.png
create public/apple-touch-icon.png
create public/favicon.ico
create public/robots.txt
create test/fixtures
create test/fixtures/.keep
create test/fixtures/files
create test/fixtures/files/.keep
create test/controllers
create test/controllers/.keep
create test/mailers
create test/mailers/.keep
create test/models
create test/models/.keep
create test/helpers
create test/helpers/.keep
create test/integration
create test/integration/.keep
create test/test_helper.rb
create test/system
create test/system/.keep
create test/application_system_test_case.rb
create tmp
create tmp/.keep
create tmp/cache
create tmp/cache/assets
create vendor
create vendor/.keep
create package.json
remove config/initializers/cors.rb
remove config/initializers/new_framework_defaults_5_1.rb
apply /Users/ark/Documents/Projects/GoRails/jumpstart/template.rb
gemfile administrate (~> 0.8.1)
gemfile devise (~> 4.3.0)
gemfile devise-bootstrapped
gemfile devise_masquerade (~> 0.6.0)
gemfile font-awesome-sass (~> 4.7)
gemfile gravatar_image_tag
gemfile jquery-rails (~> 4.3.1)
gemfile bootstrap (~> 4.0.0.beta)
gemfile webpacker (~> 3.0)
gemfile sidekiq (~> 5.0)
gemfile foreman (~> 0.84.0)
gemfile omniauth-facebook (~> 4.0)
gemfile omniauth-twitter (~> 1.4)
gemfile omniauth-github (~> 1.3)
run bundle install
Fetching https://github.com/excid3/devise-bootstrapped.git
Fetching https://github.com/mdeering/gravatar_image_tag.git
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Fetching gem metadata from https://rubygems.org/........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies......
Using rake 12.3.1
Using concurrent-ruby 1.0.5
Using minitest 5.11.3
Using thread_safe 0.3.6
Using builder 3.2.3
Using erubi 1.7.1
Using mini_portile2 2.3.0
Using rack 2.0.4
Using nio4r 2.3.0
Using websocket-extensions 0.1.3
Using mini_mime 1.0.0
Using arel 8.0.0
Using public_suffix 3.0.2
Using execjs 2.7.0
Using method_source 0.9.0
Using thor 0.19.4
Using kaminari-core 1.1.1
Using rb-fsevent 0.10.3
Using ffi 1.9.23
Using tilt 2.0.8
Using selectize-rails 0.12.4.1
Using bcrypt 3.1.11
Using bindex 0.5.0
Using popper_js 1.12.9
Using bundler 1.16.1
Using byebug 10.0.1
Using coffee-script-source 1.12.2
Using connection_pool 2.2.1
Using orm_adapter 0.5.0
Using devise-bootstrapped 0.2.0 from https://github.com/excid3/devise-bootstrapped.git (at bootstrap4@a963d93)
Using crass 1.0.3
Using multipart-post 2.0.0
Using gravatar_image_tag 1.2.0 from https://github.com/mdeering/gravatar_image_tag.git (at master@c02351f)
Using hashie 3.5.7
Using jwt 1.5.6
Using ruby_dep 1.5.0
Using multi_xml 0.6.0
Using oauth 0.5.4
Using pg 1.0.0
Using puma 3.11.3
Using redis 4.0.1
Using rubyzip 1.2.1
Using turbolinks-source 5.1.0
Using i18n 0.9.5
Using tzinfo 1.2.5
Using nokogiri 1.8.2
Using rack-test 0.8.3
Using sprockets 3.7.1
Using warden 1.2.7
Using rack-protection 2.0.1
Using rack-proxy 0.6.4
Using websocket-driver 0.6.5
Using mail 2.7.0
Using addressable 2.5.2
Using autoprefixer-rails 8.2.0
Using foreman 0.84.0
Using uglifier 4.1.8
Using rb-inotify 0.9.10
Using childprocess 0.9.0
Using coffee-script 2.4.1
Using faraday 0.12.2
Using omniauth 1.8.1
Using activesupport 5.1.5
Using turbolinks 5.1.0
Using loofah 2.2.1
Using xpath 3.0.0
Using sidekiq 5.1.1
Using sass-listen 4.0.0
Using listen 3.1.5
Using selenium-webdriver 3.11.0
Using rails-dom-testing 2.0.3
Using rails-html-sanitizer 1.0.3
Using globalid 0.4.1
Using activemodel 5.1.5
Using sass 3.5.5
Using multi_json 1.13.1
Using omniauth-oauth 1.1.0
Using spring 2.0.2
Using actionview 5.1.5
Using activejob 5.1.5
Using activerecord 5.1.5
Using bootstrap 4.0.0
Using font-awesome-sass 4.7.0
Using jbuilder 2.7.0
Using oauth2 1.4.0
Using omniauth-twitter 1.4.0
Using spring-watcher-listen 2.0.1
Using actionpack 5.1.5
Using kaminari-actionview 1.1.1
Using kaminari-activerecord 1.1.1
Using omniauth-oauth2 1.5.0
Using actioncable 5.1.5
Using actionmailer 5.1.5
Using railties 5.1.5
Using kaminari 1.1.1
Using sprockets-rails 3.2.1
Using momentjs-rails 2.17.1
Using jquery-rails 4.3.1
Using coffee-rails 4.2.2
Using responders 2.4.0
Using omniauth-facebook 4.0.0
Using omniauth-github 1.3.0
Using web-console 3.5.1
Using webpacker 3.3.1
Using datetime_picker_rails 0.0.7
Using sass-rails 5.0.7
Using rails 5.1.5
Using devise 4.3.0
Using capybara 2.18.0
Using administrate 0.8.1
Using devise_masquerade 0.6.1
Bundle complete! 30 Gemfile dependencies, 111 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
run bundle exec spring binstub --all
* bin/rake: spring inserted
* bin/rails: spring inserted
generate devise:install
Running via Spring preloader in process 12404
create config/initializers/devise.rb
create config/locales/devise.en.yml
===============================================================================
Some setup you must do manually if you haven't yet:
1. Ensure you have defined default url options in your environments files. Here
is an example of default_url_options appropriate for a development environment
in config/environments/development.rb:
config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }
In production, :host should be set to the actual host of your application.
2. Ensure you have defined root_url to *something* in your config/routes.rb.
For example:
root to: "home#index"
3. Ensure you have flash messages in app/views/layouts/application.html.erb.
For example:
<p class="notice"><%= notice %></p>
<p class="alert"><%= alert %></p>
4. You can copy Devise views (for customization) to your app by running:
rails g devise:views
===============================================================================
route root to: 'home#index'
generate devise:views:bootstrapped
Running via Spring preloader in process 12406
create app/views/devise
create app/views/devise/confirmations/new.html.erb
create app/views/devise/mailer/confirmation_instructions.html.erb
create app/views/devise/mailer/password_change.html.erb
create app/views/devise/mailer/reset_password_instructions.html.erb
create app/views/devise/mailer/unlock_instructions.html.erb
create app/views/devise/passwords/edit.html.erb
create app/views/devise/passwords/new.html.erb
create app/views/devise/registrations/edit.html.erb
create app/views/devise/registrations/new.html.erb
create app/views/devise/sessions/new.html.erb
create app/views/devise/shared/_links.html.erb
create app/views/devise/unlocks/new.html.erb
generate devise
Running via Spring preloader in process 12420
invoke active_record
create db/migrate/20180322072424_devise_create_users.rb
create app/models/user.rb
invoke test_unit
create test/models/user_test.rb
create test/fixtures/users.yml
insert app/models/user.rb
route devise_for :users
gsub db/migrate/20180322072424_devise_create_users.rb
gsub config/initializers/devise.rb
insert app/models/user.rb
run rm app/assets/stylesheets/application.css from "."
insert app/assets/javascripts/application.js
insert config/routes.rb
insert config/routes.rb
create Procfile
rails webpacker:install
rails aborted!
NoMethodError: undefined method `credentials' for #<Myapp2::Application:0x00007f7fbdef61b0>
/Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/config/initializers/devise.rb:9:in `block in <top (required)>'
/usr/local/lib/ruby/gems/2.5.0/gems/devise-4.3.0/lib/devise.rb:304:in `setup'
/Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/config/initializers/devise.rb:3:in `<top (required)>'
/usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:286:in `load'
/usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:286:in `block in load'
/usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:258:in `load_dependency'
/usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:286:in `load'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:655:in `block in load_config_initializer'
/usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/notifications.rb:168:in `instrument'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:654:in `load_config_initializer'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:612:in `block (2 levels) in <class:Engine>'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:611:in `each'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:611:in `block in <class:Engine>'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:30:in `instance_exec'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:30:in `run'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:59:in `block in run_initializers'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:48:in `each'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:48:in `tsort_each_child'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:58:in `run_initializers'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/application.rb:353:in `initialize!'
/Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/config/environment.rb:5:in `<top (required)>'
/usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:292:in `require'
/usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:292:in `block in require'
/usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:258:in `load_dependency'
/usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:292:in `require'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/application.rb:329:in `require_environment!'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/application.rb:445:in `block in run_tasks_blocks'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/commands/rake/rake_command.rb:21:in `block in perform'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/commands/rake/rake_command.rb:18:in `perform'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/command.rb:46:in `invoke'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/commands.rb:16:in `<top (required)>'
/Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/bin/rails:9:in `require'
/Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/bin/rails:9:in `<top (required)>'
/usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in `load'
/usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in `call'
/usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/client/command.rb:7:in `call'
/usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/client.rb:30:in `run'
/usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/bin/spring:49:in `<top (required)>'
/usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `load'
/usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `<top (required)>'
/Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/bin/spring:15:in `require'
/Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/bin/spring:15:in `<top (required)>'
./bin/rails:3:in `load'
./bin/rails:3:in `<main>'
Tasks: TOP => app:template => environment
(See full trace by running task with --trace)
generate model Announcement published_at:datetime announcement_type name description:text
route resources :announcements, only: [:index]
generate model Notification recipient_id:integer actor_id:integer read_at:datetime action:string notifiable_id:integer notifiable_type:string
/Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/config/initializers/devise.rb:9:in `block in <top (required)>': undefined method `credentials' for #<Myapp2::Application:0x00007fdbff2032c0> (NoMethodError)
from /usr/local/lib/ruby/gems/2.5.0/gems/devise-4.3.0/lib/devise.rb:304:in `setup'
from /Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/config/initializers/devise.rb:3:in `<top (required)>'
from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:286:in `load'
from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:286:in `block in load'
from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:258:in `load_dependency'
from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:286:in `load'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:655:in `block in load_config_initializer'
from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/notifications.rb:168:in `instrument'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:654:in `load_config_initializer'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:612:in `block (2 levels) in <class:Engine>'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:611:in `each'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:611:in `block in <class:Engine>'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:30:in `instance_exec'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:30:in `run'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:59:in `block in run_initializers'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:228:in `block in tsort_each'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:431:in `each_strongly_connected_component_from'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:48:in `each'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:48:in `tsort_each_child'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:415:in `call'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:415:in `each_strongly_connected_component_from'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:349:in `block in each_strongly_connected_component'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:347:in `each'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:347:in `call'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:347:in `each_strongly_connected_component'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:226:in `tsort_each'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:205:in `tsort_each'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:58:in `run_initializers'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/application.rb:353:in `initialize!'
from /Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/config/environment.rb:5:in `<top (required)>'
from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:292:in `require'
from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:292:in `block in require'
from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:258:in `load_dependency'
from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:292:in `require'
from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:102:in `preload'
from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:153:in `serve'
from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:141:in `block in run'
from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:135:in `loop'
from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:135:in `run'
from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application/boot.rb:19:in `<top (required)>'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
from -e:1:in `<main>'
route resources :notifications, only: [:index]
insert config/routes.rb
generate model Service user:references provider uid access_token access_token_secret refresh_token expires_at:datetime auth:text
/Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/config/initializers/devise.rb:9:in `block in <top (required)>': undefined method `credentials' for #<Myapp2::Application:0x00007fa0552925f0> (NoMethodError)
from /usr/local/lib/ruby/gems/2.5.0/gems/devise-4.3.0/lib/devise.rb:304:in `setup'
from /Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/config/initializers/devise.rb:3:in `<top (required)>'
from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:286:in `load'
from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:286:in `block in load'
from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:258:in `load_dependency'
from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:286:in `load'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:655:in `block in load_config_initializer'
from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/notifications.rb:168:in `instrument'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:654:in `load_config_initializer'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:612:in `block (2 levels) in <class:Engine>'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:611:in `each'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:611:in `block in <class:Engine>'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:30:in `instance_exec'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:30:in `run'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:59:in `block in run_initializers'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:228:in `block in tsort_each'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:431:in `each_strongly_connected_component_from'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:48:in `each'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:48:in `tsort_each_child'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:415:in `call'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:415:in `each_strongly_connected_component_from'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:349:in `block in each_strongly_connected_component'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:347:in `each'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:347:in `call'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:347:in `each_strongly_connected_component'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:226:in `tsort_each'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:205:in `tsort_each'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:58:in `run_initializers'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/application.rb:353:in `initialize!'
from /Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/config/environment.rb:5:in `<top (required)>'
from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:292:in `require'
from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:292:in `block in require'
from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:258:in `load_dependency'
from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:292:in `require'
from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:102:in `preload'
from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:153:in `serve'
from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:141:in `block in run'
from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:135:in `loop'
from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:135:in `run'
from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application/boot.rb:19:in `<top (required)>'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
from -e:1:in `<main>'
insert config/initializers/devise.rb
exist app
create app/assets/stylesheets/announcements.scss
create app/assets/stylesheets/application.scss
create app/assets/stylesheets/sticky-footer.scss
create app/controllers/announcements_controller.rb
force app/controllers/application_controller.rb
create app/controllers/home_controller.rb
create app/controllers/notifications_controller.rb
create app/controllers/users/omniauth_callbacks_controller.rb
create app/helpers/announcements_helper.rb
force app/helpers/application_helper.rb
create app/helpers/devise_helper.rb
create app/models/announcement.rb
create app/models/notification.rb
create app/models/service.rb
force app/models/user.rb
create app/views/admin/users/show.html.erb
create app/views/announcements/index.html.erb
force app/views/devise/registrations/edit.html.erb
force app/views/devise/registrations/new.html.erb
create app/views/home/index.html.erb
create app/views/home/privacy.html.erb
create app/views/home/terms.html.erb
force app/views/layouts/application.html.erb
create app/views/notifications/index.html.erb
create app/views/shared/_footer.html.erb
create app/views/shared/_head.html.erb
create app/views/shared/_navbar.html.erb
create app/views/shared/_notices.html.erb
exist config
create config/initializers/gravatar.rb
route get '/terms', to: 'home#terms'
route get '/privacy', to: 'home#privacy'
rails db:create
/Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/config/initializers/devise.rb:9:in `block in <top (required)>': undefined method `credentials' for #<Myapp2::Application:0x00007ff6c9a7cf98> (NoMethodError)
from /usr/local/lib/ruby/gems/2.5.0/gems/devise-4.3.0/lib/devise.rb:304:in `setup'
from /Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/config/initializers/devise.rb:3:in `<top (required)>'
from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:286:in `load'
from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:286:in `block in load'
from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:258:in `load_dependency'
from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:286:in `load'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:655:in `block in load_config_initializer'
from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/notifications.rb:168:in `instrument'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:654:in `load_config_initializer'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:612:in `block (2 levels) in <class:Engine>'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:611:in `each'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:611:in `block in <class:Engine>'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:30:in `instance_exec'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:30:in `run'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:59:in `block in run_initializers'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:228:in `block in tsort_each'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:431:in `each_strongly_connected_component_from'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:48:in `each'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:48:in `tsort_each_child'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:415:in `call'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:415:in `each_strongly_connected_component_from'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:349:in `block in each_strongly_connected_component'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:347:in `each'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:347:in `call'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:347:in `each_strongly_connected_component'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:226:in `tsort_each'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:205:in `tsort_each'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:58:in `run_initializers'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/application.rb:353:in `initialize!'
from /Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/config/environment.rb:5:in `<top (required)>'
from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:292:in `require'
from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:292:in `block in require'
from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:258:in `load_dependency'
from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:292:in `require'
from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:102:in `preload'
from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:153:in `serve'
from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:141:in `block in run'
from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:135:in `loop'
from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:135:in `run'
from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application/boot.rb:19:in `<top (required)>'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
from -e:1:in `<main>'
Created database 'myapp2_development'
Created database 'myapp2_test'
rails db:migrate
rails aborted!
NoMethodError: undefined method `credentials' for #<Myapp2::Application:0x00007faee356ca90>
/Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/config/initializers/devise.rb:9:in `block in <top (required)>'
/usr/local/lib/ruby/gems/2.5.0/gems/devise-4.3.0/lib/devise.rb:304:in `setup'
/Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/config/initializers/devise.rb:3:in `<top (required)>'
/usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:286:in `load'
/usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:286:in `block in load'
/usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:258:in `load_dependency'
/usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:286:in `load'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:655:in `block in load_config_initializer'
/usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/notifications.rb:168:in `instrument'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:654:in `load_config_initializer'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:612:in `block (2 levels) in <class:Engine>'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:611:in `each'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:611:in `block in <class:Engine>'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:30:in `instance_exec'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:30:in `run'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:59:in `block in run_initializers'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:48:in `each'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:48:in `tsort_each_child'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:58:in `run_initializers'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/application.rb:353:in `initialize!'
/Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/config/environment.rb:5:in `<top (required)>'
/usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:292:in `require'
/usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:292:in `block in require'
/usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:258:in `load_dependency'
/usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:292:in `require'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/application.rb:329:in `require_environment!'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/application.rb:445:in `block in run_tasks_blocks'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/commands/rake/rake_command.rb:21:in `block in perform'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/commands/rake/rake_command.rb:18:in `perform'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/command.rb:46:in `invoke'
/usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/commands.rb:16:in `<top (required)>'
/Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/bin/rails:9:in `require'
/Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/bin/rails:9:in `<top (required)>'
/usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in `load'
/usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in `call'
/usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/client/command.rb:7:in `call'
/usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/client.rb:30:in `run'
/usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/bin/spring:49:in `<top (required)>'
/usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `load'
/usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `<top (required)>'
/Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/bin/spring:15:in `<top (required)>'
bin/rails:3:in `load'
bin/rails:3:in `<main>'
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
generate administrate:install
gsub app/dashboards/announcement_dashboard.rb
Traceback (most recent call last):
25: from /usr/local/bin/rails:23:in `<main>'
24: from /usr/local/bin/rails:23:in `load'
23: from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/exe/rails:9:in `<top (required)>'
22: from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
21: from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
20: from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/cli.rb:16:in `<top (required)>'
19: from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/command.rb:44:in `invoke'
18: from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/command/base.rb:63:in `perform'
17: from /usr/local/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor.rb:387:in `dispatch'
16: from /usr/local/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor/invocation.rb:126:in `invoke_command'
15: from /usr/local/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor/command.rb:27:in `run'
14: from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/commands/application/application_command.rb:24:in `perform'
13: from /usr/local/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor/base.rb:466:in `start'
12: from /usr/local/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor/group.rb:232:in `dispatch'
11: from /usr/local/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor/invocation.rb:133:in `invoke_all'
10: from /usr/local/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor/invocation.rb:133:in `map'
9: from /usr/local/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor/invocation.rb:133:in `each'
8: from /usr/local/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor/invocation.rb:133:in `block in invoke_all'
7: from /usr/local/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor/invocation.rb:126:in `invoke_command'
6: from /usr/local/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor/command.rb:27:in `run'
5: from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/generators/rails/app/app_generator.rb:424:in `run_after_bundle_callbacks'
4: from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/generators/rails/app/app_generator.rb:424:in `each'
3: from /Users/ark/Documents/Projects/GoRails/jumpstart/template.rb:166:in `block in apply'
2: from /Users/ark/Documents/Projects/GoRails/jumpstart/template.rb:112:in `add_administrate'
1: from /usr/local/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor/actions/file_manipulation.rb:263:in `gsub_file'
/usr/local/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor/actions/file_manipulation.rb:263:in `binread': No such file or directory @ rb_sysopen - /Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/app/dashboards/announcement_dashboard.rb (Errno::ENOENT)
arks-MacBook-Pro% /Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/config/initializers/devise.rb:9:in `block in <top (required)>': undefined method `credentials' for #<Myapp2::Application:0x00007f84ea4cd7d8> (NoMethodError)
from /usr/local/lib/ruby/gems/2.5.0/gems/devise-4.3.0/lib/devise.rb:304:in `setup'
from /Users/ark/Documents/Projects/GoRails/jumpstart/myapp2/config/initializers/devise.rb:3:in `<top (required)>'
from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:286:in `load'
from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:286:in `block in load'
from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:258:in `load_dependency'
from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:286:in `load'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:655:in `block in load_config_initializer'
from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/notifications.rb:168:in `instrument'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:654:in `load_config_initializer'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:612:in `block (2 levels) in <class:Engine>'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:611:in `each'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/engine.rb:611:in `block in <class:Engine>'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:30:in `instance_exec'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:30:in `run'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:59:in `block in run_initializers'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:228:in `block in tsort_each'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:431:in `each_strongly_connected_component_from'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:48:in `each'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:48:in `tsort_each_child'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:415:in `call'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:415:in `each_strongly_connected_component_from'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:349:in `block in each_strongly_connected_component'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:347:in `each'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:347:in `call'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:347:in `each_strongly_connected_component'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:226:in `tsort_each'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/tsort.rb:205:in `tsort_each'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/initializable.rb:58:in `run_initializers'
from /usr/local/lib/ruby/gems/2.5.0/gems/railties-5.1.5/lib/rails/application.rb:353:in `initialize!'
from /Users/ark/Documents/Projects/ark/jumpstart/myapp2/config/environment.rb:5:in `<top (required)>'
from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:292:in `require'
from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:292:in `block in require'
from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:258:in `load_dependency'
from /usr/local/lib/ruby/gems/2.5.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:292:in `require'
from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:102:in `preload'
from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:153:in `serve'
from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:141:in `block in run'
from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:135:in `loop'
from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:135:in `run'
from /usr/local/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application/boot.rb:19:in `<top (required)>'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
from /usr/local/Cellar/ruby/2.5.0_2/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
from -e:1:in `<main>'
We should have a way to send out emails to welcome new users.
I imagine these will be defined somewhere in an initializer like spark.rb
When using Rails 6 if config.eager_load = true
the app/helpers/devise_helper.rb
does not get used. Setting config.autoloader = :classic
however fixes the issue.
Hi Chris,
I just pulled down the latest version and ran accordingly to the documentation but it looks like it has failed for me.
`block in load_missing_constant': uninitialized constant Service::PROVIDERS (NameError)
Have you seen this error before? is it something I don't have installed?
Cheers
You specified: jquery-rails (>= 0) and jquery-rails (~> 4.3.1). Bundler cannot continue.
# from /Gemfile:65
# -------------------------------------------
# gem 'gravatar_image_tag', github: 'mdeering/gravatar_image_tag'
> gem 'jquery-rails', '~> 4.3.1'
# gem 'local_time', '~> 2.0'
# -------------------------------------------
The default gemfile already has jquery-rails, so a solution could be to simply use that and not include it in the template AddGems method.
on Rails 6.0.0.beta3 I just ran
RBENV_VERSION=2.6.2 rails new newproject -d postgresql -m https://raw.githubusercontent.com/excid3/jumpstart/master/template.rb
db creation failed because of database credentials missing, so I setup an .env file
DATABASE_USERNAME=postgres
DATABASE_PASSWORD=
DATABASE_PORT=5432
DATABASE_HOST=localhost
then
bundle exec foreman run rails db:create
bundle exec foreman run rails db:migrate
it failed because all the migrations had this extra field in there
t.string :RAILS_ENV=development
for example create_services.rb
class CreateServices < ActiveRecord::Migration[6.0]
def change
create_table :services do |t|
t.references :user, foreign_key: true
t.string :provider
t.string :uid
t.string :access_token
t.string :access_token_secret
t.string :refresh_token
t.datetime :expires_at
t.text :auth
t.string :RAILS_ENV=development
t.timestamps
end
end
end
I can't figure out why this happens.
I've implemented some basic classes in my template.rb
that will fetch the most recent version of a gem unless a specific version
argument is passed. Would this repository benefit from something like this, or are standardized gem versions better for stability?
https://gitlab.com/stephendolan/rails-default-template/blob/master/template.rb
In the landing configuration page there is this button:
<%= link_to "Configure Jumpstart", jumpstart_path, data: { turbolinks: false }, class: "btn btn-primary lg:mr-4 mr-0 lg:mb-0 mb-4" %>
My local development set-up worked fine. When I deployed to production the app fails as there is no jumpstart route. I don't know how this even worked locally as on my local machine there is also no jumpstart route.
<%= link_to "Configure Jumpstart", jumpstart_config_path, data: { turbolinks: false }, class: "btn btn-primary lg:mr-4 mr-0 lg:mb-0 mb-4" %>
I can't find that jumpstart_path reference in the code - when are these static pages created?
Should we include the Ahoy gem for metrics? https://github.com/ankane/ahoy
running the generator on ruby 2.5.1 and rails 5.2 fails because of calling limit on the scope proc.
could that be a ruby version issue?
generate administrate:install
Running via Spring preloader in process 221
[WARNING] Could not load generator "generators/administrate/routes/routes_generator". Error: undefined method `limit' for #<Proc:0x000055ad18d505a0>.
/app/app/models/notification.rb:7:in `<class:Notification>'
it's this line in notification.rb
jumpstart/app/models/notification.rb
Line 7 in 716ca1f
Would there be interest in adding bullet or a similar gem to detect N+1 queries?
Rails 5.2.1
DB: Sqlite
ActiveRecord::StatementInvalid in Admin::Users#index
SQLite3::SQLException: no such column: users.password: SELECT "users".* FROM "users" WHERE (LOWER(CAST("users"."email" AS CHAR(256))) LIKE '%qsdfqsdf%' OR LOWER(CAST("users"."password" AS CHAR(256))) LIKE '%qsdfqsdf%' OR LOWER(CAST("users"."encrypted_password" AS CHAR(256))) LIKE '%qsdfqsdf%' OR LOWER(CAST("users"."reset_password_token" AS CHAR(256))) LIKE '%qsdfqsdf%' OR LOWER(CAST("users"."name" AS CHAR(256))) LIKE '%qsdfqsdf%') LIMIT ? OFFSET ?
Search is working fine on Announcements.
The users should be able to clear / remove their avatar.
I just try to create new application from template, and have an error in adminstrate page.
This error caused by wrong ATTRIBUTE_TYPES
hash in user_dashboard.rb.
How it looked in my project after running the template (twice check):
ATTRIBUTE_TYPES = {
notifications: Field::HasMany,
services: Field::HasMany,
id: Field::Number,
email: Field::String,
Field::String.with_options(searchable: false),,
encrypted_password: Field::String,
reset_password_token: Field::String,
reset_password_sent_at: Field::DateTime,
remember_created_at: Field::DateTime,
first_name: Field::String,
last_name: Field::String,
announcements_last_read_at: Field::DateTime,
admin: Field::Boolean,
created_at: Field::DateTime,
updated_at: Field::DateTime,
}.freeze
As you see, the problem is with email key, seems that template script not gsub it correctly for some reason.
Is this my local problem or somebody have this issue too? I see that last change was mage 22 days ago, but I don't really understand purpose of \n\t\t
there and trailing comma.
Whenever I try and use the template to generate a new app, it fails during the rails db:create step because my dev database doesn't exist on my local system and also requires authentication. It would be really helpful if there were a step that gathered this info.
Masquerade gem documentation states that one must add before_action :masquerade_user!
. Even tough I don't see it anywhere in the template, masquerading works.
I'm opening this issue for you guys to review if this is intentionally missing tough.
What is the best practice to hide the configuration page?
Currently I have my production server behind basic http auth otherwise the configuration page is wide open to anyone to edit etc.
I would suggest that perhaps the initial set-up workflow should be:
I get the following output when I access the admin dashboard on a fresh install with rails 6.
ActionView::Template::Error
(uninitialized constant NotificationDashboard
Did you mean? Notification):
18: [1]: http://www.rubydoc.info/gems/administrate/Administrate/Field/HasMany
19: %>
20:
21: <% if field.resources.any? %>
22: <% order = field.order_from_params(params.fetch(field.name, {})) %>
23: <% page_number = params.fetch(field.name, {}).fetch(:page, nil) %>
24: <%= render(
app/views/admin/users/show.html.erb:48
app/views/admin/users/show.html.erb:39:in each' app/views/admin/users/show.html.erb:39 DEPRECATION WARNING: ActionView::Base instances should be constructed with a lookup context, assignments, and a controller. (called from new at /var/lib/gems/2.5.0/gems/web-console-3.7.0/lib/web_console/template.rb:21)
A user should have a way to cancel their subscription, change billing, etc.
It will be nice to add a gem that allows user roles
To get a feel of what Jumpstart Pro might offer I thought of installing this free version.
I followed the README instructions:
rails new myapp -d postgresql -m https://raw.githubusercontent.com/excid3/jumpstart/master/template.rb
cd myapp && foreman start
It all seems to run fine:
... (truncated)
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
└─ [email protected]
✨ Done in 36.24s.
Installing dev server for live reloading
run yarn add --dev webpack-dev-server from "."
yarn add v1.16.0
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
warning "webpack-dev-server > [email protected]" has unmet peer dependency "webpack@^4.0.0".
warning " > [email protected]" has unmet peer dependency "webpack@^4.0.0".
[4/4] 🔨 Building fresh packages...
success Saved lockfile.
success Saved 95 new dependencies.
info Direct dependencies
└─ [email protected]
info All dependencies
├─ @types/[email protected]
├─ @types/[email protected]
├─ @types/[email protected]
├─ @types/[email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
└─ [email protected]
✨ Done in 4.20s.
Webpacker successfully installed 🎉 🍰
You can change application name inside: ./config/application.rb
run spring stop from "."
Spring is not running
generate devise:install
rails generate devise:install
Running via Spring preloader in process 60921
create config/initializers/devise.rb
create config/locales/devise.en.yml
===============================================================================
Some setup you must do manually if you haven't yet:
1. Ensure you have defined default url options in your environments files. Here
is an example of default_url_options appropriate for a development environment
in config/environments/development.rb:
config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }
In production, :host should be set to the actual host of your application.
2. Ensure you have defined root_url to *something* in your config/routes.rb.
For example:
root to: "home#index"
3. Ensure you have flash messages in app/views/layouts/application.html.erb.
For example:
<p class="notice"><%= notice %></p>
<p class="alert"><%= alert %></p>
4. You can copy Devise views (for customization) to your app by running:
rails g devise:views
===============================================================================
route root to: 'home#index'
generate devise:views:bootstrapped
rails generate devise:views:bootstrapped
Running via Spring preloader in process 60959
create app/views/devise
create app/views/devise/confirmations/new.html.erb
create app/views/devise/mailer/confirmation_instructions.html.erb
create app/views/devise/mailer/password_change.html.erb
create app/views/devise/mailer/reset_password_instructions.html.erb
create app/views/devise/mailer/unlock_instructions.html.erb
create app/views/devise/passwords/edit.html.erb
create app/views/devise/passwords/new.html.erb
create app/views/devise/registrations/edit.html.erb
create app/views/devise/registrations/new.html.erb
create app/views/devise/sessions/new.html.erb
create app/views/devise/shared/_links.html.erb
create app/views/devise/unlocks/new.html.erb
generate devise
rails generate devise User first_name last_name announcements_last_read_at:datetime admin:boolean
Running via Spring preloader in process 60962
invoke active_record
create db/migrate/20190627053401_devise_create_users.rb
create app/models/user.rb
invoke test_unit
create test/models/user_test.rb
create test/fixtures/users.yml
insert app/models/user.rb
route devise_for :users
gsub db/migrate/20190627053401_devise_create_users.rb
gsub config/initializers/devise.rb
insert app/models/user.rb
run yarn add expose-loader jquery popper.js bootstrap data-confirm-modal local-time from "."
yarn add v1.16.0
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
warning " > [email protected]" has unmet peer dependency "webpack@^4.0.0".
warning "webpack-dev-server > [email protected]" has unmet peer dependency "webpack@^4.0.0".
warning " > [email protected]" has unmet peer dependency "webpack@^2.0.0 || ^3.0.0 || ^4.0.0".
[4/4] 🔨 Building fresh packages...
success Saved lockfile.
success Saved 6 new dependencies.
info Direct dependencies
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
└─ [email protected]
info All dependencies
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
└─ [email protected]
✨ Done in 9.29s.
insert config/webpack/environment.js
generate model Announcement published_at:datetime announcement_type name description:text
rails generate model Announcement published_at:datetime announcement_type name description:text
Running via Spring preloader in process 61010
invoke active_record
create db/migrate/20190627053412_create_announcements.rb
create app/models/announcement.rb
invoke test_unit
create test/models/announcement_test.rb
create test/fixtures/announcements.yml
route resources :announcements, only: [:index]
generate model Notification recipient_id:bigint actor_id:bigint read_at:datetime action:string notifiable_id:bigint notifiable_type:string
rails generate model Notification recipient_id:bigint actor_id:bigint read_at:datetime action:string notifiable_id:bigint notifiable_type:string
Running via Spring preloader in process 61013
invoke active_record
create db/migrate/20190627053414_create_notifications.rb
create app/models/notification.rb
invoke test_unit
create test/models/notification_test.rb
create test/fixtures/notifications.yml
route resources :notifications, only: [:index]
insert config/routes.rb
generate model Service user:references provider uid access_token access_token_secret refresh_token expires_at:datetime auth:text
rails generate model Service user:references provider uid access_token access_token_secret refresh_token expires_at:datetime auth:text
Running via Spring preloader in process 61017
invoke active_record
create db/migrate/20190627053416_create_services.rb
create app/models/service.rb
invoke test_unit
create test/models/service_test.rb
create test/fixtures/services.yml
insert config/initializers/devise.rb
insert config/routes.rb
insert config/routes.rb
generate friendly_id
rails generate friendly_id
Running via Spring preloader in process 61019
create db/migrate/20190627053418_create_friendly_id_slugs.rb
create config/initializers/friendly_id.rb
insert db/migrate/20190627053418_create_friendly_id_slugs.rb
remove app/assets/stylesheets/application.css
create Procfile
create Procfile.dev
create .foreman
exist app
create app/assets/stylesheets/announcements.scss
create app/assets/stylesheets/application.scss
create app/assets/stylesheets/sticky-footer.scss
force app/channels/application_cable/connection.rb
create app/controllers/announcements_controller.rb
force app/controllers/application_controller.rb
create app/controllers/home_controller.rb
create app/controllers/notifications_controller.rb
create app/controllers/users/omniauth_callbacks_controller.rb
create app/helpers/announcements_helper.rb
force app/helpers/application_helper.rb
identical app/javascript/channels/consumer.js
identical app/javascript/channels/index.js
force app/javascript/packs/application.js
force app/models/announcement.rb
force app/models/notification.rb
force app/models/service.rb
force app/models/user.rb
create app/views/admin/application/_navigation.html.erb
create app/views/admin/users/show.html.erb
create app/views/announcements/index.html.erb
force app/views/devise/registrations/edit.html.erb
force app/views/devise/registrations/new.html.erb
create app/views/devise/shared/_error_messages.html.erb
create app/views/home/index.html.erb
create app/views/home/privacy.html.erb
create app/views/home/terms.html.erb
force app/views/layouts/application.html.erb
create app/views/notifications/index.html.erb
create app/views/shared/_footer.html.erb
create app/views/shared/_head.html.erb
create app/views/shared/_navbar.html.erb
create app/views/shared/_notices.html.erb
exist config
force config/cable.yml
create config/initializers/gravatar.rb
exist lib
create lib/templates/erb/scaffold/_form.html.erb
create lib/templates/erb/scaffold/edit.html.erb
create lib/templates/erb/scaffold/index.html.erb
create lib/templates/erb/scaffold/new.html.erb
create lib/templates/erb/scaffold/show.html.erb
route get '/terms', to: 'home#terms'
route get '/privacy', to: 'home#privacy'
run wheneverize . from "."
[add] writing `./config/schedule.rb'
[done] wheneverized!
rails sitemap:install
created: config/sitemap.rb
rails db:create
Created database 'myapp_development'
Created database 'myapp_test'
rails db:migrate
== 20190627053401 DeviseCreateUsers: migrating ================================
-- create_table(:users)
-> 0.0373s
-- add_index(:users, :email, {:unique=>true})
-> 0.0052s
-- add_index(:users, :reset_password_token, {:unique=>true})
-> 0.0035s
== 20190627053401 DeviseCreateUsers: migrated (0.0461s) =======================
== 20190627053412 CreateAnnouncements: migrating ==============================
-- create_table(:announcements)
-> 0.0845s
== 20190627053412 CreateAnnouncements: migrated (0.0845s) =====================
== 20190627053414 CreateNotifications: migrating ==============================
-- create_table(:notifications)
-> 0.0461s
== 20190627053414 CreateNotifications: migrated (0.0461s) =====================
== 20190627053416 CreateServices: migrating ===================================
-- create_table(:services)
-> 0.0454s
== 20190627053416 CreateServices: migrated (0.0455s) ==========================
== 20190627053418 CreateFriendlyIdSlugs: migrating ============================
-- create_table(:friendly_id_slugs)
-> 0.0859s
-- add_index(:friendly_id_slugs, [:sluggable_type, :sluggable_id])
-> 0.0056s
-- add_index(:friendly_id_slugs, [:slug, :sluggable_type], {:length=>{:slug=>140, :sluggable_type=>50}})
-> 0.0385s
-- add_index(:friendly_id_slugs, [:slug, :sluggable_type, :scope], {:length=>{:slug=>70, :sluggable_type=>50, :scope=>70}, :unique=>true})
-> 0.0065s
== 20190627053418 CreateFriendlyIdSlugs: migrated (0.1376s) ===================
generate administrate:install
rails generate administrate:install
Running via Spring preloader in process 61157
route namespace :admin do
resources :users
root to: "users#index"
end
create app/controllers/admin/application_controller.rb
create app/dashboards/user_dashboard.rb
create app/controllers/admin/users_controller.rb
gsub app/dashboards/user_dashboard.rb
gsub app/dashboards/user_dashboard.rb
gsub app/controllers/admin/application_controller.rb
run git init from "."
Reinitialized existing Git repository in /Users/sdubois/Repos/myapp/.git/
run git add . from "."
warning: CRLF will be replaced by LF in app/controllers/users/omniauth_callbacks_controller.rb.
The file will have its original line endings in your working directory
warning: CRLF will be replaced by LF in app/models/service.rb.
The file will have its original line endings in your working directory
run git commit -m 'Initial commit' from "."
[master (root-commit) f0b827c] Initial commit
157 files changed, 10930 insertions(+)
create mode 100644 .browserslistrc
create mode 100644 .foreman
create mode 100644 .gitignore
create mode 100644 .ruby-version
create mode 100644 Gemfile
create mode 100644 Gemfile.lock
create mode 100644 Procfile
create mode 100644 Procfile.dev
create mode 100644 README.md
create mode 100644 Rakefile
create mode 100644 app/assets/config/manifest.js
create mode 100644 app/assets/images/.keep
create mode 100644 app/assets/stylesheets/announcements.scss
create mode 100644 app/assets/stylesheets/application.scss
create mode 100644 app/assets/stylesheets/sticky-footer.scss
create mode 100644 app/channels/application_cable/channel.rb
create mode 100644 app/channels/application_cable/connection.rb
create mode 100644 app/controllers/admin/application_controller.rb
create mode 100644 app/controllers/admin/users_controller.rb
create mode 100644 app/controllers/announcements_controller.rb
create mode 100644 app/controllers/application_controller.rb
create mode 100644 app/controllers/concerns/.keep
create mode 100644 app/controllers/home_controller.rb
create mode 100644 app/controllers/notifications_controller.rb
create mode 100644 app/controllers/users/omniauth_callbacks_controller.rb
create mode 100644 app/dashboards/user_dashboard.rb
create mode 100644 app/helpers/announcements_helper.rb
create mode 100644 app/helpers/application_helper.rb
create mode 100644 app/javascript/channels/consumer.js
create mode 100644 app/javascript/channels/index.js
create mode 100644 app/javascript/packs/application.js
create mode 100644 app/jobs/application_job.rb
create mode 100644 app/mailers/application_mailer.rb
create mode 100644 app/models/announcement.rb
create mode 100644 app/models/application_record.rb
create mode 100644 app/models/concerns/.keep
create mode 100644 app/models/notification.rb
create mode 100644 app/models/service.rb
create mode 100644 app/models/user.rb
create mode 100644 app/views/admin/application/_navigation.html.erb
create mode 100644 app/views/admin/users/show.html.erb
create mode 100644 app/views/announcements/index.html.erb
create mode 100644 app/views/devise/confirmations/new.html.erb
create mode 100644 app/views/devise/mailer/confirmation_instructions.html.erb
create mode 100644 app/views/devise/mailer/password_change.html.erb
create mode 100644 app/views/devise/mailer/reset_password_instructions.html.erb
create mode 100644 app/views/devise/mailer/unlock_instructions.html.erb
create mode 100644 app/views/devise/passwords/edit.html.erb
create mode 100644 app/views/devise/passwords/new.html.erb
create mode 100644 app/views/devise/registrations/edit.html.erb
create mode 100644 app/views/devise/registrations/new.html.erb
create mode 100644 app/views/devise/sessions/new.html.erb
create mode 100644 app/views/devise/shared/_error_messages.html.erb
create mode 100644 app/views/devise/shared/_links.html.erb
create mode 100644 app/views/devise/unlocks/new.html.erb
create mode 100644 app/views/home/index.html.erb
create mode 100644 app/views/home/privacy.html.erb
create mode 100644 app/views/home/terms.html.erb
create mode 100644 app/views/layouts/application.html.erb
create mode 100644 app/views/layouts/mailer.html.erb
create mode 100644 app/views/layouts/mailer.text.erb
create mode 100644 app/views/notifications/index.html.erb
create mode 100644 app/views/shared/_footer.html.erb
create mode 100644 app/views/shared/_head.html.erb
create mode 100644 app/views/shared/_navbar.html.erb
create mode 100644 app/views/shared/_notices.html.erb
create mode 100644 babel.config.js
create mode 100755 bin/bundle
create mode 100755 bin/rails
create mode 100755 bin/rake
create mode 100755 bin/setup
create mode 100755 bin/spring
create mode 100755 bin/webpack
create mode 100755 bin/webpack-dev-server
create mode 100755 bin/yarn
create mode 100644 config.ru
create mode 100644 config/application.rb
create mode 100644 config/boot.rb
create mode 100644 config/cable.yml
create mode 100644 config/credentials.yml.enc
create mode 100644 config/database.yml
create mode 100644 config/environment.rb
create mode 100644 config/environments/development.rb
create mode 100644 config/environments/production.rb
create mode 100644 config/environments/test.rb
create mode 100644 config/initializers/application_controller_renderer.rb
create mode 100644 config/initializers/assets.rb
create mode 100644 config/initializers/backtrace_silencers.rb
create mode 100644 config/initializers/content_security_policy.rb
create mode 100644 config/initializers/cookies_serializer.rb
create mode 100644 config/initializers/devise.rb
create mode 100644 config/initializers/filter_parameter_logging.rb
create mode 100644 config/initializers/friendly_id.rb
create mode 100644 config/initializers/gravatar.rb
create mode 100644 config/initializers/inflections.rb
create mode 100644 config/initializers/mime_types.rb
create mode 100644 config/initializers/wrap_parameters.rb
create mode 100644 config/locales/devise.en.yml
create mode 100644 config/locales/en.yml
create mode 100644 config/puma.rb
create mode 100644 config/routes.rb
create mode 100644 config/schedule.rb
create mode 100644 config/sitemap.rb
create mode 100644 config/spring.rb
create mode 100644 config/storage.yml
create mode 100644 config/webpack/development.js
create mode 100644 config/webpack/environment.js
create mode 100644 config/webpack/production.js
create mode 100644 config/webpack/test.js
create mode 100644 config/webpacker.yml
create mode 100644 db/migrate/20190627053401_devise_create_users.rb
create mode 100644 db/migrate/20190627053412_create_announcements.rb
create mode 100644 db/migrate/20190627053414_create_notifications.rb
create mode 100644 db/migrate/20190627053416_create_services.rb
create mode 100644 db/migrate/20190627053418_create_friendly_id_slugs.rb
create mode 100644 db/schema.rb
create mode 100644 db/seeds.rb
create mode 100644 lib/assets/.keep
create mode 100644 lib/tasks/.keep
create mode 100644 lib/templates/erb/scaffold/_form.html.erb
create mode 100644 lib/templates/erb/scaffold/edit.html.erb
create mode 100644 lib/templates/erb/scaffold/index.html.erb
create mode 100644 lib/templates/erb/scaffold/new.html.erb
create mode 100644 lib/templates/erb/scaffold/show.html.erb
create mode 100644 log/.keep
create mode 100644 package.json
create mode 100644 postcss.config.js
create mode 100644 public/404.html
create mode 100644 public/422.html
create mode 100644 public/500.html
create mode 100644 public/apple-touch-icon-precomposed.png
create mode 100644 public/apple-touch-icon.png
create mode 100644 public/favicon.ico
create mode 100644 public/robots.txt
create mode 100644 storage/.keep
create mode 100644 test/application_system_test_case.rb
create mode 100644 test/channels/application_cable/connection_test.rb
create mode 100644 test/controllers/.keep
create mode 100644 test/fixtures/.keep
create mode 100644 test/fixtures/announcements.yml
create mode 100644 test/fixtures/files/.keep
create mode 100644 test/fixtures/notifications.yml
create mode 100644 test/fixtures/services.yml
create mode 100644 test/fixtures/users.yml
create mode 100644 test/helpers/.keep
create mode 100644 test/integration/.keep
create mode 100644 test/mailers/.keep
create mode 100644 test/models/.keep
create mode 100644 test/models/announcement_test.rb
create mode 100644 test/models/notification_test.rb
create mode 100644 test/models/service_test.rb
create mode 100644 test/models/user_test.rb
create mode 100644 test/system/.keep
create mode 100644 test/test_helper.rb
create mode 100644 tmp/.keep
create mode 100644 vendor/.keep
create mode 100644 yarn.lock
Jumpstart app successfully created!
To get started with your new app:
cd myapp - Switch to your new app's directory.
foreman start - Run Rails, sidekiq, and webpack-dev-server.
sdubois-macbook:Repos sdubois$ cd myapp/
sdubois-macbook:myapp sdubois$ foreman start
08:35:05 web.1 | started with pid 61216
08:35:05 worker.1 | started with pid 61217
08:35:05 webpack.1 | started with pid 61218
08:35:09 webpack.1 | ℹ 「wds」: Project is running at http://localhost:3035/
08:35:09 webpack.1 | ℹ 「wds」: webpack output is served from /packs/
08:35:09 webpack.1 | ℹ 「wds」: Content not from webpack is served from /Users/sdubois/Repos/myapp/public/packs
08:35:09 webpack.1 | ℹ 「wds」: 404s will fallback to /index.html
08:35:10 web.1 | => Booting Puma
08:35:10 web.1 | => Rails 6.0.0.rc1 application starting in development
08:35:10 web.1 | => Run `rails server --help` for more startup options
08:35:14 worker.1 | 2019-06-27T05:35:14.215Z 61217 TID-owj3dymg9 INFO: Running in ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-darwin18]
08:35:14 worker.1 | 2019-06-27T05:35:14.216Z 61217 TID-owj3dymg9 INFO: See LICENSE and the LGPL-3.0 for licensing details.
08:35:14 worker.1 | 2019-06-27T05:35:14.216Z 61217 TID-owj3dymg9 INFO: Upgrade to Sidekiq Pro for more features and support: http://sidekiq.org
08:35:14 worker.1 | 2019-06-27T05:35:14.216Z 61217 TID-owj3dymg9 INFO: Booting Sidekiq 5.2.7 with redis options {:id=>"Sidekiq-server-PID-61217", :url=>nil}
08:35:14 worker.1 | 2019-06-27T05:35:14.279Z 61217 TID-owj3dymg9 INFO: Starting processing, hit Ctrl-C to stop
08:35:14 webpack.1 | ℹ 「wdm」: Hash: 7a763cfe303106956562
08:35:14 webpack.1 | Version: webpack 4.35.0
08:35:14 webpack.1 | Time: 5534ms
08:35:14 webpack.1 | Built at: 27/06/2019 08:35:14
08:35:14 webpack.1 | Asset Size Chunks Chunk Names
08:35:14 webpack.1 | js/application-d6c43ffedad9ba16217c.js 1.03 MiB application [emitted] application
08:35:14 webpack.1 | js/application-d6c43ffedad9ba16217c.js.map 1.19 MiB application [emitted] application
08:35:14 webpack.1 | manifest.json 364 bytes [emitted]
08:35:14 webpack.1 | ℹ 「wdm」: Compiled successfully.
08:35:14 web.1 | Puma starting in single mode...
08:35:14 web.1 | * Version 3.12.1 (ruby 2.6.3-p62), codename: Llamas in Pajamas
08:35:14 web.1 | * Min threads: 5, max threads: 5
08:35:14 web.1 | * Environment: development
08:35:14 web.1 | * Listening on tcp://localhost:5000
08:35:14 web.1 | Use Ctrl-C to stop
But when opening http://localhost:3035/ in the browser as suggested on the command line, I get Cannot GET /
.
It will be nice to have the testing setup with RSpec, Capybara, and other tools including in this template.
I am getting this error while I try to load my page. In following file
/home/anasir/myw/scripts/rails-rocket/myapp/app/views/shared/_head.html.erb
This actually written in following file.
app/assets/stylesheets/application.scss
It also taking too much time to load the main page even that has nothing in it. It insanely ~around 2 MINUTES.
Since we've added OAuth, we have a decision to make on whether or not we split names from that into first and last, or only store the single name
string on the User model. Currently we have them split because it's easiest from a data structure perspective.
I'm now more leaning towards rewriting this as name
and then attempting to split the string if we ever needed to use first_name
and last_name
.
Github, Twitter, Basecamp, etc all seem to have a single name field.
We can encourage people to fill it out correctly by putting in placeholder text that says "Full Name" or something along those lines.
What are your thoughts? @mickeytgl @king601
config/application.rb
#Procfile
web: rails server
webpacker: bin/webpack-dev-server
sidekiq: sidekiq
queu
This is just an idea, but when you're building out notifications for the very first time, you're going to spend a lot of time with the error page. Each new notification you create won't have a matching template, so you'll have to hit the error page to figure out what to fill out.
What if we build a special helper method for development-only that auto-generates those view files if they don't exist and includes comments for the variables that are available?
Say I create a notification for Post, action commented
so it could generate a file called app/views/notifications/post/_commented.html.erb
if it does NOT exist.
And we could prepopulate that with:
<%# Available variables: actor, notifiable %>
<%= actor.name %> commented on <%= notifiable %>
This can't do too fancy of stuff because we won't know if the objects have routes or whatever. Just needs to be something simple that the user can easily edit.
Interested in building this @codeByScott?
Possibly use administrate and add a dashboard to show MRR and things
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.