Open exocode opened 8 years ago
when I skip devise it breaks on another part:
Error: No such file or directory @ rb_sysopen - /Users/jan/RubymineProjects/global-nights-api/app/models/user.rb
MacBook-Pro:RubymineProjects jan$ rails_apps_composer new global-nights-api -r core
Would you like to skip Test::Unit? (yes for RSpec) (y/n) y
Would you like to skip Active Record? (yes for MongoDB) (y/n) y
What gem would you like to add? (blank to finish)
Generating basic application, using: "rails new global-nights-api -m <temp_file> -T -O "
create
create README.rdoc
create Rakefile
create config.ru
create .gitignore
create Gemfile
create app
create app/assets/javascripts/application.js
create app/assets/stylesheets/application.css
create app/controllers/application_controller.rb
create app/helpers/application_helper.rb
create app/views/layouts/application.html.erb
create app/assets/images/.keep
create app/mailers/.keep
create app/models/.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 config
create config/routes.rb
create config/application.rb
create config/environment.rb
create config/secrets.yml
create config/environments
create config/environments/development.rb
create config/environments/production.rb
create config/environments/test.rb
create config/initializers
create config/initializers/assets.rb
create config/initializers/backtrace_silencers.rb
create config/initializers/cookies_serializer.rb
create config/initializers/filter_parameter_logging.rb
create config/initializers/inflections.rb
create config/initializers/mime_types.rb
create config/initializers/session_store.rb
create config/initializers/wrap_parameters.rb
create config/locales
create config/locales/en.yml
create config/boot.rb
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/favicon.ico
create public/robots.txt
create tmp/cache
create tmp/cache/assets
create vendor/assets/javascripts
create vendor/assets/javascripts/.keep
create vendor/assets/stylesheets
create vendor/assets/stylesheets/.keep
apply /var/folders/5j/4psr53vs7jb_f2vjkk7dn2n40000gn/T/template20160325-39906-1cfgqpy
composer
composer _____ _ _
composer | __ \ (_) | /\
composer | |__) |__ _ _| |___ / \ _ __ _ __ ___
composer | _ // _` | | / __| / /\ \ | '_ | '_ \/ __|
composer | | \ \ (_| | | \__ \/ ____ \| |_) | |_) \__ \
composer |_| \_\__,_|_|_|___/_/ \_\ .__/| .__/|___/
composer | | | |
composer | | | |
composer
composer If you like Rails Composer, will you support it?
composer You can help by purchasing our tutorials.
composer Need help? Ask on Stack Overflow with the tag 'railsapps.'
composer Your new application will contain diagnostics in its README file.
insert config/application.rb
recipe Running core recipe...
core selected all core recipes
recipe Running git recipe...
git initialize git
remove .gitignore
create .gitignore
run git init from "."
Initialized empty Git repository in /Users/jan/RubymineProjects/global-nights-api/.git/
run git add -A from "."
run git commit -qm "rails_apps_composer: initial commit" from "."
recipe Running railsapps recipe...
option Build a starter application?
1) Build a RailsApps example application
2) Contributed applications (none available)
3) Custom application (experimental)
choose Enter your selection: 3
Get on the mailing list for Rails Composer news?
option Enter your email address:
recipe Running learn_rails recipe...
recipe Running rails_bootstrap recipe...
recipe Running rails_foundation recipe...
recipe Running rails_omniauth recipe...
recipe Running rails_devise recipe...
recipe Running rails_devise_roles recipe...
recipe Running rails_devise_pundit recipe...
recipe Running rails_signup_download recipe...
recipe Running rails_mailinglist_activejob recipe...
recipe Running rails_stripe_checkout recipe...
recipe Running rails_stripe_coupons recipe...
recipe Running rails_stripe_membership_saas recipe...
recipe Running setup recipe...
setup Your operating system is darwin15.3.0.
setup You are using Ruby version 2.2.3.
setup You are using Rails version 4.2.6.
option Web server for development?
1) WEBrick (default)
2) Thin
3) Unicorn
4) Puma
5) Phusion Passenger (Apache/Nginx)
6) Phusion Passenger (Standalone)
choose Enter your selection: 4
option Web server for production?
1) Same as development
2) Thin
3) Unicorn
4) Puma
5) Phusion Passenger (Apache/Nginx)
6) Phusion Passenger (Standalone)
choose Enter your selection: 4
option Database used in development?
1) SQLite
2) PostgreSQL
3) MySQL
choose Enter your selection:
choose Enter your selection: 3
option Template engine?
1) ERB
2) Haml
3) Slim
choose Enter your selection: 1
option Test framework?
1) None
2) RSpec with Capybara
choose Enter your selection: 2
setup Adding DatabaseCleaner, FactoryGirl, Faker, Launchy, Selenium
option Continuous testing?
1) None
2) Guard
choose Enter your selection: 1
option Front-end framework?
1) None
2) Bootstrap 3.3
3) Bootstrap 2.3
4) Zurb Foundation 5.5
5) Zurb Foundation 4.0
6) Simple CSS
choose Enter your selection: 2
option Add support for sending email?
1) None
2) Gmail
3) SMTP
4) SendGrid
5) Mandrill
choose Enter your selection: 2
option Authentication?
1) None
2) Devise
3) OmniAuth
choose Enter your selection: 1
option Authorization?
1) None
2) Simple role-based
3) Pundit
choose Enter your selection: 3
option Use a form builder gem?
1) None
2) SimpleForm
choose Enter your selection: 1
option Add pages?
1) None
2) Home
3) Home and About
4) Home and Users
5) Home, About, and Users
choose Enter your selection: 5
setup Which Bootstrap page template? Visit startbootstrap.com.
option Add Bootstrap page templates?
1) None
2) 1 Col Portfolio
3) 2 Col Portfolio
4) 3 Col Portfolio
5) 4 Col Portfolio
6) Bare
7) Blog Home
8) Business Casual
9) Business Frontpage
10) Clean Blog
11) Full Width Pics
12) Heroic Features
13) Landing Page
14) Modern Business
15) One Page Wonder
16) Portfolio Item
17) Round About
18) Shop Homepage
19) Shop Item
20) Simple Sidebar
21) Small Business
22) Stylish Portfolio
23) The Big Picture
24) Thumbnail Gallery
choose Enter your selection: 7
create config/railscomposer.yml
append config/railscomposer.yml
recipe Running locale recipe...
option Set a locale? Enter nothing for English, or es, de, etc:
recipe Running readme recipe...
recipe Running gems recipe...
insert Gemfile
gsub Gemfile
gsub Gemfile
gsub Gemfile
gsub Gemfile
run git add -A from "."
run git commit -qm "rails_apps_composer: Gemfile" from "."
recipe Running tests recipe...
recipe Running email recipe...
recipe Running devise recipe...
recipe Running omniauth recipe...
recipe Running roles recipe...
recipe Running frontend recipe...
recipe Running pages recipe...
recipe Running init recipe...
recipe Running analytics recipe...
option Install page-view analytics?
1) None
2) Google Analytics
3) Segment.io
choose Enter your selection: 1
recipe Running deployment recipe...
option Prepare for deployment?
1) no
2) Heroku
3) Capistrano
choose Enter your selection: 3
deployment installing gems for Capistrano
recipe Running extras recipe...
option Disable Rails Turbolinks? (y/n) y
option Set a robots.txt file to ban spiders? (y/n) y
option Create a GitHub repository? (y/n) n
option Add gem and file for environment variables?
1) None
2) Add .env with Foreman
3) Add application.yml with Figaro
choose Enter your selection: 2
option Reduce assets logger noise during development? (y/n) n
option Improve error reporting with 'better_errors' during development? (y/n) y
option Use 'pry' as console replacement during development and test? (y/n) n
option Use 'rubocop' to ensure that your code conforms to the Ruby style guide? (y/n) y
option Use or create a project-specific rvm gemset? (y/n) n
extras recipe creating .env file for development environment variables with foreman
extras recipe adding better_errors gem
extras recipe adding rubocop gem and basic .rubocop.yml
remove .rubocop.yml
create .rubocop.yml
extras recipe removing support for Rails Turbolinks
extras recipe banning spiders by modifying 'public/robots.txt'
composer Installing Bundler (in case it is not installed).
run gem install bundler from "."
Successfully installed bundler-1.11.2
Parsing documentation for bundler-1.11.2
Done installing documentation for bundler after 3 seconds
1 gem installed
composer Installing gems. This will take a while.
run bundle install --without production from "."
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies.....................................................................................................................................................................................................................................................
Using rake 11.1.1
Using i18n 0.7.0
Using json 1.8.3
Using minitest 5.8.4
Using thread_safe 0.3.5
Using builder 3.2.2
Using erubis 2.7.0
Using mini_portile2 2.0.0
Using rack 1.6.4
Using mime-types-data 3.2016.0221
Using arel 6.0.3
Using addressable 2.4.0
Using ast 2.2.0
Using execjs 2.6.0
Using coderay 1.1.1
Using debug_inspector 0.0.2
Using sass 3.4.21
Using bundler 1.11.2
Using byebug 8.2.2
Installing net-ssh 3.1.1
Using ffi 1.9.10
Using coffee-script-source 1.10.0
Using thor 0.19.1
Using concurrent-ruby 1.0.1
Using database_cleaner 1.5.1
Using diff-lcs 1.2.5
Using high_voltage 2.4.0
Using multi_json 1.11.2
Using mysql2 0.3.20
Using powerpack 0.1.1
Using puma 3.2.0
Using rails_apps_pages 0.6.4
Using rails_apps_testing 0.3.12
Using rails_layout 1.0.29
Using rainbow 2.1.0
Using rspec-support 3.4.1
Using ruby-progressbar 1.7.5
Using unicode-display_width 1.0.2
Using rubyzip 1.2.0
Using tilt 2.0.2
Using websocket 1.2.2
Using spring 1.6.4
Using faker 1.6.3
Using tzinfo 1.2.2
Using nokogiri 1.6.7.2
Using rack-test 0.6.3
Using mime-types 3.0
Using launchy 2.4.3
Installing parser 2.3.0.7
Using autoprefixer-rails 6.3.4
Using uglifier 3.0.0
Using better_errors 2.1.1
Using binding_of_caller 0.7.2
Installing net-scp 1.2.1
Using childprocess 0.5.9
Using coffee-script 2.4.1
Using foreman 0.78.0
Using sprockets 3.5.2
Using rspec-core 3.4.4
Using rspec-expectations 3.4.0
Using rspec-mocks 3.4.1
Using spring-commands-rspec 1.0.4
Using activesupport 4.2.6
Using loofah 2.0.3
Using xpath 2.0.0
Using mail 2.6.4
Using rubocop 0.38.0
Using bootstrap-sass 3.3.6
Installing sshkit 1.9.0
Using selenium-webdriver 2.53.0
Using rails-deprecated_sanitizer 1.0.3
Using globalid 0.3.6
Using activemodel 4.2.6
Using factory_girl 4.5.0
Using jbuilder 2.4.1
Using pundit 1.1.0
Using rails-html-sanitizer 1.0.3
Using capybara 2.6.2
Installing capistrano 3.0.1
Using rails-dom-testing 1.0.7
Using activejob 4.2.6
Using activerecord 4.2.6
Installing capistrano-bundler 1.1.2
Installing capistrano-rails-console 0.5.2
Installing capistrano-rvm 0.1.2
Using actionview 4.2.6
Installing capistrano-rails 1.1.0
Using actionpack 4.2.6
Using actionmailer 4.2.6
Using railties 4.2.6
Using sprockets-rails 3.0.4
Using coffee-rails 4.1.1
Using factory_girl_rails 4.6.0
Using jquery-rails 4.1.1
Using rspec-rails 3.4.2
Using rails 4.2.6
Using sass-rails 5.0.4
Using web-console 2.3.0
Using turbolinks 2.5.3
Bundle complete! 34 Gemfile dependencies, 99 gems now installed.
Gems in the group production were not installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
Post-install message from capistrano:
If you're updating Capistrano from 2.x.x, we recommend you to read the upgrade guide: http://www.capistranorb.com/documentation/upgrading/
composer Updating gem paths.
WARN: Unresolved specs during Gem::Specification.reset:
json (>= 1.7.7, ~> 1.7)
minitest (~> 5.1)
nokogiri (>= 1.5.9, ~> 1.6.0)
builder (~> 3.1)
rake (>= 0.8.7)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
composer Stage Two (running recipe 'stage_two' callbacks).
locale
gems
gems recipe stage two
gems configuring database
remove config/database.yml
create config/database.yml
option Username for MySQL? (leave blank to use the app name) root
gsub config/database.yml
option Password for MySQL user root? root
gsub config/database.yml
gems set config/database.yml for username/password root/root
gsub config/database.yml
gsub config/database.yml
gsub config/database.yml
option Okay to drop all existing databases named global-nights-api? 'No' will abort immediately! (y/n) y
run bundle exec rake db:drop from "."
rake aborted!
Don't know how to build task 'db:drop' (see --tasks)
(See full trace by running task with --trace)
run bundle exec rake db:create:all from "."
rake aborted!
Don't know how to build task 'db:create:all' (see --tasks)
(See full trace by running task with --trace)
run git add -A from "."
run git commit -qm "rails_apps_composer: create database" from "."
gems
gems recipe stage two
gems running generators
create .env
create Procfile
run git add -A from "."
run git commit -qm "rails_apps_composer: generators" from "."
tests
tests recipe stage two
tests recipe installing RSpec
generate testing:configure rspec -f
run rm -rf test/ from "."
generate rspec:install
create .rspec
create spec
create spec/spec_helper.rb
create spec/rails_helper.rb
insert .rspec
insert .rspec
gsub .rspec
insert config/application.rb
create spec/support/capybara.rb
gsub spec/rails_helper.rb
gsub spec/rails_helper.rb
create spec/support/database_cleaner.rb
create spec/support/factory_girl.rb
run git add -A from "."
run git commit -qm "rails_apps_composer: testing framework" from "."
email
email recipe stage two
insert config/environments/development.rb
insert config/environments/production.rb
gsub config/environments/production.rb
insert config/environments/development.rb
insert config/environments/production.rb
run git add -A from "."
run git commit -qm "rails_apps_composer: set email accounts" from "."
devise
devise recipe stage two
run git add -A from "."
run git commit -qm "rails_apps_composer: devise" from "."
On branch master
nothing to commit, working directory clean
omniauth
omniauth recipe stage two
run git add -A from "."
run git commit -qm "rails_apps_composer: omniauth" from "."
On branch master
nothing to commit, working directory clean
roles
roles recipe stage two
generate model User email:string
run bundle exec rake db:migrate from "."
rake aborted!
Don't know how to build task 'db:migrate' (see --tasks)
(See full trace by running task with --trace)
generate migration AddRoleToUsers role:integer
insert app/models/user.rb
The template [/var/folders/5j/4psr53vs7jb_f2vjkk7dn2n40000gn/T/template20160325-39906-1cfgqpy] could not be loaded. Error: No such file or directory @ rb_sysopen - /Users/jan/RubymineProjects/global-nights-api/app/models/user.rb
MacBook-Pro:RubymineProjects jan$ ruby -v
ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-darwin15]
MacBook-Pro:RubymineProjects jan$ rails -v
Rails 4.2.6
Hi there this is my first approach. How to handle this error?
Here is the complete process