Code Monkey home page Code Monkey logo

galeria's Introduction

Archival Note

This repository is deprecated; therefore, we are going to archive it. However, learners will be able to fork it to their personal Github account but cannot submit PRs to this repository. If you have any issues or suggestions to make, feel free to:

galeria's People

Contributors

dlugo06 avatar sudkul avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

galeria's Issues

rake db:migrate failed (LoadError: cannot load such file -- sinatra/activerecord/rake)

In Windows, I am trying to run rake db:migrate as mentioned in Lesson 2 Step 7, but it will prompts following error:

D:\GitHub\WebApp\Back End\GaleriaFunctions>rake db:migrate
rake aborted!
LoadError: cannot load such file -- sinatra/activerecord/rake
D:/GitHub/WebApp/Back End/GaleriaFunctions/Rakefile:2:in `<top (required)>'
(See full trace by running task with --trace)

Could advise any solution for this error?

Thanks.

rake db:migrate failed (Database "dev" does not exist)

I am mac user (OS X Sierra 10.12.5) and I tried to set up database, but got this error

galeria egorsorokin$ rake db:migrate
rake aborted!
ActiveRecord::NoDatabaseError: FATAL:  database "dev" does not exist
/Library/Ruby/Gems/2.0.0/gems/activerecord-4.2.6/lib/active_record/connection_adapters/postgresql_adapter.rb:661:in 'rescue in connect'
/Library/Ruby/Gems/2.0.0/gems/activerecord-4.2.6/lib/active_record/connection_adapters/postgresql_adapter.rb:651:in 'connect'
/Library/Ruby/Gems/2.0.0/gems/activerecord-4.2.6/lib/active_record/connection_adapters/postgresql_adapter.rb:242:in 'initialize'
/Library/Ruby/Gems/2.0.0/gems/activerecord-4.2.6/lib/active_record/connection_adapters/postgresql_adapter.rb:44:in 'new'
/Library/Ruby/Gems/2.0.0/gems/activerecord-4.2.6/lib/active_record/connection_adapters/postgresql_adapter.rb:44:in 'postgresql_connection'
/Library/Ruby/Gems/2.0.0/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:438:in 'new_connection'
/Library/Ruby/Gems/2.0.0/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:448:in 'checkout_new_connection'
/Library/Ruby/Gems/2.0.0/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:422:in 'acquire_connection'
/Library/Ruby/Gems/2.0.0/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:349:in 'block in checkout'
/Library/Ruby/Gems/2.0.0/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:348:in 'checkout'
/Library/Ruby/Gems/2.0.0/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:263:in 'block in connection'
/Library/Ruby/Gems/2.0.0/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:262:in 'connection'
/Library/Ruby/Gems/2.0.0/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:571:in 'retrieve_connection'
/Library/Ruby/Gems/2.0.0/gems/activerecord-4.2.6/lib/active_record/connection_handling.rb:113:in 'retrieve_connection'
/Library/Ruby/Gems/2.0.0/gems/activerecord-4.2.6/lib/active_record/connection_handling.rb:87:in connection'
/Library/Ruby/Gems/2.0.0/gems/activerecord-4.2.6/lib/active_record/migration.rb:916:in 'initialize'
/Library/Ruby/Gems/2.0.0/gems/activerecord-4.2.6/lib/active_record/migration.rb:823:in 'new'
/Library/Ruby/Gems/2.0.0/gems/activerecord-4.2.6/lib/active_record/migration.rb:823:in 'up'
/Library/Ruby/Gems/2.0.0/gems/activerecord-4.2.6/lib/active_record/migration.rb:801:in 'migrate'
/Library/Ruby/Gems/2.0.0/gems/activerecord-4.2.6/lib/active_record/tasks/database_tasks.rb:137:in 'migrate'
/Library/Ruby/Gems/2.0.0/gems/activerecord-4.2.6/lib/active_record/railties/databases.rake:44:in 'block (2 levels) in <top (required)>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)

After that I tried to create database "dev" by the command "rake db:create" or "rake db:create:all" and got this error

rake db:create
rake aborted!
ActiveRecord::AdapterNotSpecified: 'development' database is not configured. Available: []
/Library/Ruby/Gems/2.0.0/gems/activerecord-4.2.6/lib/active_record/connection_adapters/connection_specification.rb:248:in 'resolve_symbol_connection'
/Library/Ruby/Gems/2.0.0/gems/activerecord-4.2.6/lib/active_record/connection_adapters/connection_specification.rb:211:in 'resolve_connection'
/Library/Ruby/Gems/2.0.0/gems/activerecord-4.2.6/lib/active_record/connection_adapters/connection_specification.rb:139:in 'resolve'
/Library/Ruby/Gems/2.0.0/gems/activerecord-4.2.6/lib/active_record/connection_adapters/connection_specification.rb:169:in 'spec'
/Library/Ruby/Gems/2.0.0/gems/activerecord-4.2.6/lib/active_record/connection_handling.rb:50:in 'establish_connection'
/Library/Ruby/Gems/2.0.0/gems/activerecord-4.2.6/lib/active_record/tasks/database_tasks.rb:109:in 'create_current'
/Library/Ruby/Gems/2.0.0/gems/activerecord-4.2.6/lib/active_record/railties/databases.rake:17:in 'block (2 levels) in <top (required)>'
Tasks: TOP => db:create
(See full trace by running task with --trace)

I spent some hours to resolve this problem but didn't find a right solution on stackoverflow and github. Usually people who faced it recommend to check "database.yml", but looks like it's OK. Any ideas how to resolve it? Without it I can't continue the course

Git push heroku problem

Hey,

I'm following your instructions, but when I got to "git push heroku master," it doesn't follow through like in the instructions. I get this message (see below). Can you help me?

screen shot 2017-01-23 at 11 52 03 am

Thanks

Recommend Projects

  • React photo React

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

  • Vue.js photo Vue.js

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

  • Typescript photo Typescript

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

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

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

Recommend Topics

  • javascript

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

  • web

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

  • server

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

  • Machine learning

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

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

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

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

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

  • D3 photo D3

    Data-Driven Documents codes.