Skip to content

Instantly share code, notes, and snippets.

@ecmelkytz
Last active June 2, 2017 12:18
Show Gist options
  • Save ecmelkytz/9935183d99bc30e37774a14168c7481a to your computer and use it in GitHub Desktop.
Save ecmelkytz/9935183d99bc30e37774a14168c7481a to your computer and use it in GitHub Desktop.

Procfile dosyasını projenin ana dizininde oluştur ve içine şunu ekle:

web: bundle exec puma -p $PORT

Projenin ilgili dizininde:

$ heroku create # git'e heroku remote'ını eklemiş olacağız

Şu kaynakta sadece nodejs ve ruby buildpackleri eklenmiş. Karşılaştığım bazı problemleri aşağıdaki gibi 3. builpack'i ekleyerek halletim. Bununla ilgili referans kaynak.

$ heroku buildpacks:add --index 1 heroku/nodejs
$ heroku buildpacks:add --index 2 heroku/ruby
$ heroku buildpacks:add --index 3 https://github.com/febeling/webpack-rails-buildpack.git

heroku remote'una push et:

$ git push heroku master
rails webpacker:compile

Heroku migrate problemi: Eğer heroku run rake db:migrate çalışmıyorsa aşağıdaki gibi kullan. İlgili problem

heroku run:detached rake db:migrate
heroku run:detached rake db:seed
heroku restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment