Heroku Installfest


#86

I finally managed to use Heroku… I used the gems specified in the Learn Enough tutorial

gem 'rails',        '5.1.6'
gem 'puma',         '3.9.1'
gem 'sass-rails',   '5.0.6'
gem 'uglifier',     '3.2.0'
gem 'coffee-rails', '4.2.2'
gem 'jquery-rails', '4.3.1'
gem 'turbolinks',   '5.0.1'
gem 'jbuilder',     '2.7.0'

group :development, :test do
  gem 'sqlite3', '1.3.13'
  gem 'byebug',  '9.0.6', platform: :mri
end

group :development do
  gem 'web-console',           '3.5.1'
  gem 'listen',                '3.1.5'
  gem 'spring',                '2.0.2'
  gem 'spring-watcher-listen', '2.0.1'
end

group :production do
  gem 'pg', '0.20.0'
end

Then I followed the instructions provided by Heroku : https://devcenter.heroku.com/articles/sqlite3
For some reason some commands output an error but at the end I was able to push to Heroku and to deploy.

Good day !


#87

hey guys, i am on step 4.6 and getting the following error message, not sure what to do from here:

e1518@ae1518-VirtualBox:~/odin_on_rails/my_first_rails_app$ git status
On branch master

No commits yet

Untracked files:
(use “git add …” to include in what will be committed)

.gitignore
.ruby-version
Gemfile
Gemfile.lock
README.md
Rakefile
app/
bin/
config.ru
config/
db/
lib/
log/
package.json
public/
storage/
test/
tmp/
vendor/

nothing added to commit but untracked files present (use “git add” to track)
ae1518@ae1518-VirtualBox:~/odin_on_rails/my_first_rails_app$ git add .
ae1518@ae1518-VirtualBox:~/odin_on_rails/my_first_rails_app$ git commit -m ‘updates for heroku deployment’
[master (root-commit) 8228ccb] updates for heroku deployment
100 files changed, 1683 insertions(+)
create mode 100644 .gitignore
create mode 100644 .ruby-version
create mode 100644 Gemfile
create mode 100644 Gemfile.lock
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/javascripts/application.js
create mode 100644 app/assets/javascripts/cable.js
create mode 100644 app/assets/javascripts/cars.coffee
create mode 100644 app/assets/javascripts/channels/.keep
create mode 100644 app/assets/stylesheets/application.css
create mode 100644 app/assets/stylesheets/cars.scss
create mode 100644 app/assets/stylesheets/scaffolds.scss
create mode 100644 app/channels/application_cable/channel.rb
create mode 100644 app/channels/application_cable/connection.rb
create mode 100644 app/controllers/application_controller.rb
create mode 100644 app/controllers/cars_controller.rb
create mode 100644 app/controllers/concerns/.keep
create mode 100644 app/helpers/application_helper.rb
create mode 100644 app/helpers/cars_helper.rb
create mode 100644 app/jobs/application_job.rb
create mode 100644 app/mailers/application_mailer.rb
create mode 100644 app/models/application_record.rb
create mode 100644 app/models/car.rb
create mode 100644 app/models/concerns/.keep
create mode 100644 app/views/cars/_car.json.jbuilder
create mode 100644 app/views/cars/_form.html.erb
create mode 100644 app/views/cars/edit.html.erb
create mode 100644 app/views/cars/index.html.erb
create mode 100644 app/views/cars/index.json.jbuilder
create mode 100644 app/views/cars/new.html.erb
create mode 100644 app/views/cars/show.html.erb
create mode 100644 app/views/cars/show.json.jbuilder
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 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/update
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/filter_parameter_logging.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/en.yml
create mode 100644 config/puma.rb
create mode 100644 config/routes.rb
create mode 100644 config/spring.rb
create mode 100644 config/storage.yml
create mode 100644 db/migrate/20190307021048_create_cars.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 log/.keep
create mode 100644 package.json
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/controllers/.keep
create mode 100644 test/controllers/cars_controller_test.rb
create mode 100644 test/fixtures/.keep
create mode 100644 test/fixtures/cars.yml
create mode 100644 test/fixtures/files/.keep
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/car_test.rb
create mode 100644 test/system/.keep
create mode 100644 test/system/cars_test.rb
create mode 100644 test/test_helper.rb
create mode 100644 tmp/.keep
create mode 100644 vendor/.keep
ae1518@ae1518-VirtualBox:~/odin_on_rails/my_first_rails_app$ git push origin master
fatal: ‘origin’ does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
ae1518@ae1518-VirtualBox:~/odin_on_rails/my_first_rails_app$ heroku buildpacks:set https://github.com/bundler/heroku-buildpack-bundler2
› Error: Missing required flag:
› -a, --app APP app to run command against
› See more help with --help


#88

What’s the output of git remote -v


#89

@CouchofTomato should i run git remote -v after the git add . command or before?

sorry, I am totally new at this.


#90

im having problem in installing the Heroku CLI
The thing is im using 32 bit Xubuntu and when i put the command
“curl https://cli-assets.heroku.com/install.sh | sh” on my terminal, I get the result
“unsupported arch: i686”. I have heard that it doesnt support 32 bit anymore but i dont have any other choice.
please help


#91

Hey @TheBlank

Unfortunately the heroku CLI doesn’t support 32 bit and there is nothing you can do


#92

You just run it on it’s own. It’s unrelated to the other commands.


#93

so i made the changes from jonathan yiv’s post, didnt help. as for git remote -v, this is what it says:

ae1518@ae1518-VirtualBox:~/odin_on_rails/my_first_rails_app$

so basically, no output


#94

@CouchofTomato so i re-ran git remote -v and this was my output:

ae1518@ae1518-VirtualBox:~/odin_on_rails/my_first_rails_app$ git remote -v
heroku https://git.heroku.com/sleepy-depths-81528.git (fetch)
heroku https://git.heroku.com/sleepy-depths-81528.git (push


#95

Ok, i somehow managed to figure out what i did wrong and in short, i was able to open the cars app website when i ran the final comand “heroku open” onto the next chapter LOL