So I am new to programming and to cloud9 and am having problems with the ruby on rail package and heroku. You see heroku does not accept sqlite 3 so I used this guide: https://devcenter.heroku.com/articles/sqlite3 to change my sqlite3 gems to postgreSQL.
This caused some problems with my cloud9 preview page but I somehow managed to solve it by activating and connecting to postgreSQL
Then I tried adding the bootstrap gem. I did this by doing the following steps:
- I added the code gem
gem 'sass-rails', '~> 4.0.3'
to my gemfile.
- Then I installed the bundle with bundle install
- I changed the following folder name: app/assets/stylesheets/application.scss
- I added the following code to my application.scss file:
After doing this I started up the web server went to the preview page and got this error message:
FATAL: database "my_database_development" does not exist Run
$ bin/rake db:create db:migrate to create your database?
So I did what the error message suggested and ran $ bin/rake db:create db:migrate in my console. This changed nothing. I also tried using the https://community.c9.io/t/setting-up-postgresql/1573 commando's to create a database but then I just get this message:
psql: warning: extra command-line argument "database" ignored
psql: warning: extra command-line argument "my_database_development" ignored
psql: invalid connection option "postgres"
I tried starting up and connecting to the postgreSQL server to be on the save side. But nothing has changed.
This is probably a good place to show you what my database.yml file looks like:
I am really at a loss here. So I was hoping for some help.
Edit:Changed post because my error message changed.