Let me start off by saying that I'm not very well versed in Ruby (or MySQL for that matter).
I'm trying to spin up Sharetribe Go, which is written in Ruby. So far, I've encountered some issues but managed to resolve them all. I got the following error when running the following command:
Error:
ActiveRecord::NoDatabaseError (Unknown database 'sharetribe_production'):app/utils/current_marketplace_resolver.rb:27:in `block in sole_community_or'app/utils/current_marketplace_resolver.rb:26:in `sole_community_or'app/utils/current_marketplace_resolver.rb:6:in `resolve_from_host'lib/rack_middleware/marketplace_lookup.rb:13:in `call'lib/rack_middleware/custom_cookie_renamer.rb:11:in `call'lib/rack_middleware/enforce_ssl.rb:23:in `call'lib/rack_middleware/health_check.rb:12:in `call'
Command:bundle exec rails server -e production
I've even gone as far as re-running rake db:create
, but to no avail.
I was following this installation guide.
Here is my database.yml
file:
development: adapter: mysql2 database: sharetribe_development encoding: utf8 username: # ADD DATABASE USERNAME password: # ADD DATABASE PASSWORD host: localhost# Warning: The database defined as "test" will be erased and# re-generated from your development database when you run "rake".# Do not set this db to the same as development or production.test: &test adapter: mysql2 database: sharetribe_test encoding: utf8 username: # ADD DATABASE USERNAME password: # ADD DATABASE PASSWORD host: localhoststaging: adapter: mysql2 database: sharetribe_staging encoding: utf8 username: # ADD DATABASE USERNAME password: # ADD DATABASE PASSWORD host: localhostproduction: adapter: mysql2 database: sharetribe_production encoding: utf8 username: root password: "mypass" host: localhostcucumber:<<: *test
Side Note: Sharetribe Go uses MySQL, but I've had to install MariaDB for my setup. I'm not sure if that's maybe where the issue came in.
I tried re-running rake db:create
. I could only find this question asked here previously, and I tried following the solutions, but that didn't really apply.