IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Ruby on Rails Discussion :

Deploiement sur heroku rejected


Sujet :

Ruby on Rails

  1. #1
    Membre confirmé
    Avatar de geforce
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Janvier 2010
    Messages
    1 055
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Canada

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Janvier 2010
    Messages : 1 055
    Points : 559
    Points
    559
    Par défaut Deploiement sur heroku rejected
    Bonjour a tous
    Je fait un test de déploiement sur heroku mais j"ai une erreur avec la gem 'sqlite3'

    Quand je fait un : git push origin master le message suivant s'affiche :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
     
    E:\workspace\railstutorial>git push origin master
    Counting objects: 8, done.
    Delta compression using up to 2 threads.
    Compressing objects: 100% (6/6), done.
    Writing objects: 100% (6/6), 644 bytes | 0 bytes/s, done.
    Total 6 (delta 4), reused 0 (delta 0)
    remote: Compressing source files... done.
    remote: Building source:
    remote:
    remote: -----> Using set buildpack heroku/ruby
    remote: -----> Ruby app detected
    remote: -----> Compiling Ruby/Rails
    remote: -----> Using Ruby version: ruby-2.2.4
    remote: ###### WARNING:
    remote:        Removing `Gemfile.lock` because it was generated on Windows.
    remote:        Bundler will do a full resolve so native gems are handled properly.
    remote:        This may result in unexpected gem versions being used in your app.
    remote:        In rare occasions Bundler may not be able to resolve your dependencies at all.
    remote:        https://devcenter.heroku.com/articles/bundler-windows-gemfile
    remote:
    remote: -----> Installing dependencies using bundler 1.11.2
    remote:        Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4
    remote:        Fetching gem metadata from https://rubygems.org/...........
    remote:        Fetching version metadata from https://rubygems.org/...
    remote:        Fetching dependency metadata from https://rubygems.org/..
    remote:        Resolving dependencies....
    remote:        Using rake 11.1.2
    remote:        Using i18n 0.7.0
    remote:        Using json 1.8.3
    remote:        Using minitest 5.8.4
    remote:        Using thread_safe 0.3.5
    remote:        Using builder 3.2.2
    remote:        Using erubis 2.7.0
    remote:        Using mini_portile2 2.0.0
    remote:        Using rack 1.6.4
    remote:        Using mime-types-data 3.2016.0221
    remote:        Using arel 6.0.3
    remote:        Using bundler 1.11.2
    remote:        Using coffee-script-source 1.10.0
    remote:        Using execjs 2.6.0
    remote:        Using thor 0.19.1
    remote:        Using concurrent-ruby 1.0.1
    remote:        Using multi_json 1.11.2
    remote:        Using sass 3.4.22
    remote:        Using tilt 2.0.2
    remote:        Using rdoc 4.2.2
    remote:        Using tzinfo 1.2.2
    remote:        Using nokogiri 1.6.7.2
    remote:        Using rack-test 0.6.3
    remote:        Using mime-types 3.0
    remote:        Using coffee-script 2.4.1
    remote:        Using uglifier 3.0.0
    remote:        Using sprockets 3.5.2
    remote:        Using activesupport 4.2.5
    remote:        Using sdoc 0.4.1
    remote:        Using mail 2.6.4
    remote:        Using loofah 2.0.3
    remote:        Using rails-deprecated_sanitizer 1.0.3
    remote:        Using globalid 0.3.6
    remote:        Using activemodel 4.2.5
    remote:        Using jbuilder 2.4.1
    remote:        Using rails-html-sanitizer 1.0.3
    remote:        Using rails-dom-testing 1.0.7
    remote:        Using activejob 4.2.5
    remote:        Using activerecord 4.2.5
    remote:        Using actionview 4.2.5
    remote:        Using actionpack 4.2.5
    remote:        Using actionmailer 4.2.5
    remote:        Using railties 4.2.5
    remote:        Using sprockets-rails 3.0.4
    remote:        Using coffee-rails 4.1.1
    remote:        Using jquery-rails 4.1.1
    remote:        Using rails 4.2.5
    remote:        Using sass-rails 5.0.4
    remote:        Using turbolinks 2.5.3
    remote:        Installing sqlite3-ruby 1.3.2 with native extensions
    remote:        Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
    remote:        /tmp/build_57138a688a87af3a406bfe844930386a/vendor/ruby-2.2.4/bin/ruby -r ./siteconf20160405-296-1h8tvwd.rb extconf.rb
    remote:        checking for sqlite3.h... no
    remote:        sqlite3.h is missing. Try 'port install sqlite3 +universal'
    remote:        or 'yum install sqlite3-devel' and check your shared library search path (the
    remote:        location where your sqlite3 shared library is located).
    remote:        *** extconf.rb failed ***
    remote:        Could not create Makefile due to some reason, probably lack of necessary
    remote:        libraries and/or headers.  Check the mkmf.log file for more details.  You may
    remote:        need configuration options.
    remote:        Provided configuration options:
    remote:        --with-opt-dir
    remote:        --without-opt-dir
    remote:        --with-opt-include
    remote:        --without-opt-include=${opt-dir}/include
    remote:        --with-opt-lib
    remote:        --without-opt-lib=${opt-dir}/lib
    remote:        --with-make-prog
    remote:        --without-make-prog
    remote:        --srcdir=.
    remote:        --curdir
    remote:        --ruby=/tmp/build_57138a688a87af3a406bfe844930386a/vendor/ruby-2.2.4/bin/$(RUBY_BASE_NAME)
    remote:        --with-sqlite3-dir
    remote:        --without-sqlite3-dir
    remote:        --with-sqlite3-include
    remote:        --without-sqlite3-include=${sqlite3-dir}/include
    remote:        --with-sqlite3-lib
    remote:        --without-sqlite3-lib=${sqlite3-dir}/lib
    remote:        extconf failed, exit code 1
    remote:        Gem files will remain installed in /tmp/build_57138a688a87af3a406bfe844930386a/vendor/bundle/ruby/2.2.0/gems/sqlite3-ruby-1.3.2 for inspection.
    remote:        Results logged to /tmp/build_57138a688a87af3a406bfe844930386a/vendor/bundle/ruby/2.2.0/extensions/x86_64-linux/2.2.0-static/sqlite3-ruby-1.3.2/ge
    m_make.out
    remote:        An error occurred while installing sqlite3-ruby (1.3.2), and Bundler cannot
    remote:        continue.
    remote:        Make sure that `gem install sqlite3-ruby -v '1.3.2'` succeeds before bundling.
    remote:        Bundler Output: Fetching gem metadata from https://rubygems.org/...........
    remote:        Fetching version metadata from https://rubygems.org/...
    remote:        Fetching dependency metadata from https://rubygems.org/..
    remote:        Resolving dependencies....
    remote:        Using rake 11.1.2
    remote:        Using i18n 0.7.0
    remote:        Using json 1.8.3
    remote:        Using minitest 5.8.4
    remote:        Using thread_safe 0.3.5
    remote:        Using builder 3.2.2
    remote:        Using erubis 2.7.0
    remote:        Using mini_portile2 2.0.0
    remote:        Using rack 1.6.4
    remote:        Using mime-types-data 3.2016.0221
    remote:        Using arel 6.0.3
    remote:        Using bundler 1.11.2
    remote:        Using coffee-script-source 1.10.0
    remote:        Using execjs 2.6.0
    remote:        Using thor 0.19.1
    remote:        Using concurrent-ruby 1.0.1
    remote:        Using multi_json 1.11.2
    remote:        Using sass 3.4.22
    remote:        Using tilt 2.0.2
    remote:        Using rdoc 4.2.2
    remote:        Using tzinfo 1.2.2
    remote:        Using nokogiri 1.6.7.2
    remote:        Using rack-test 0.6.3
    remote:        Using mime-types 3.0
    remote:        Using coffee-script 2.4.1
    remote:        Using uglifier 3.0.0
    remote:        Using sprockets 3.5.2
    remote:        Using activesupport 4.2.5
    remote:        Using sdoc 0.4.1
    remote:        Using mail 2.6.4
    remote:        Using loofah 2.0.3
    remote:        Using rails-deprecated_sanitizer 1.0.3
    remote:        Using globalid 0.3.6
    remote:        Using activemodel 4.2.5
    remote:        Using jbuilder 2.4.1
    remote:        Using rails-html-sanitizer 1.0.3
    remote:        Using rails-dom-testing 1.0.7
    remote:        Using activejob 4.2.5
    remote:        Using activerecord 4.2.5
    remote:        Using actionview 4.2.5
    remote:        Using actionpack 4.2.5
    remote:        Using actionmailer 4.2.5
    remote:        Using railties 4.2.5
    remote:        Using sprockets-rails 3.0.4
    remote:        Using coffee-rails 4.1.1
    remote:        Using jquery-rails 4.1.1
    remote:        Using rails 4.2.5
    remote:        Using sass-rails 5.0.4
    remote:        Using turbolinks 2.5.3
    remote:        Installing sqlite3-ruby 1.3.2 with native extensions
    remote:
    remote:        Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
    remote:
    remote:        /tmp/build_57138a688a87af3a406bfe844930386a/vendor/ruby-2.2.4/bin/ruby -r ./siteconf20160405-296-1h8tvwd.rb extconf.rb
    remote:        checking for sqlite3.h... no
    remote:        sqlite3.h is missing. Try 'port install sqlite3 +universal'
    remote:        or 'yum install sqlite3-devel' and check your shared library search path (the
    remote:        location where your sqlite3 shared library is located).
    remote:        *** extconf.rb failed ***
    remote:        Could not create Makefile due to some reason, probably lack of necessary
    remote:        libraries and/or headers.  Check the mkmf.log file for more details.  You may
    remote:        need configuration options.
    remote:
    remote:        Provided configuration options:
    remote:        --with-opt-dir
    remote:        --without-opt-dir
    remote:        --with-opt-include
    remote:        --without-opt-include=${opt-dir}/include
    remote:        --with-opt-lib
    remote:        --without-opt-lib=${opt-dir}/lib
    remote:        --with-make-prog
    remote:        --without-make-prog
    remote:        --srcdir=.
    remote:        --curdir
    remote:        --ruby=/tmp/build_57138a688a87af3a406bfe844930386a/vendor/ruby-2.2.4/bin/$(RUBY_BASE_NAME)
    remote:        --with-sqlite3-dir
    remote:        --without-sqlite3-dir
    remote:        --with-sqlite3-include
    remote:        --without-sqlite3-include=${sqlite3-dir}/include
    remote:        --with-sqlite3-lib
    remote:        --without-sqlite3-lib=${sqlite3-dir}/lib
    remote:
    remote:        extconf failed, exit code 1
    remote:
    remote:        Gem files will remain installed in /tmp/build_57138a688a87af3a406bfe844930386a/vendor/bundle/ruby/2.2.0/gems/sqlite3-ruby-1.3.2 for inspection.
    remote:        Results logged to /tmp/build_57138a688a87af3a406bfe844930386a/vendor/bundle/ruby/2.2.0/extensions/x86_64-linux/2.2.0-static/sqlite3-ruby-1.3.2/ge
    m_make.out
    remote:        An error occurred while installing sqlite3-ruby (1.3.2), and Bundler cannot
    remote:        continue.
    remote:        Make sure that `gem install sqlite3-ruby -v '1.3.2'` succeeds before bundling.
    remote:  !
    remote:  !     Failed to install gems via Bundler.
    remote:  !
    remote:  !     Detected sqlite3 gem which is not supported on Heroku.
    remote:  !     https://devcenter.heroku.com/articles/sqlite3
    remote:  !
    remote:
    remote:  !     Push rejected, failed to compile Ruby app
    remote:
    remote: Verifying deploy....
    remote:
    remote: !       Push rejected to tranquil-dusk-55904.
    remote:
    To https://git.heroku.com/tranquil-dusk-55904.git
     ! [remote rejected] master -> master (pre-receive hook declined)
    error: failed to push some refs to 'https://git.heroku.com/tranquil-dusk-55904.git'
     
    E:\workspace\railstutorial>
    Ci-joint aussi mon Gemfile
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
     
    source 'https://rubygems.org'
    ruby '2.2.4'
     
    # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
    gem 'rails', '4.2.5'
    # Use sqlite3 as the database for Active Record
    #gem 'sqlite3', '~> 1.3.11'
     
    group :production, :development, :test do
      gem 'sqlite3', '~> 1.3.11'
      gem 'minitest'
      gem 'thor'  
    end
    # Use SCSS for stylesheets
    gem 'sass-rails', '~> 5.0'
    # Use Uglifier as compressor for JavaScript assets
    gem 'uglifier', '>= 1.3.0'
    # Use CoffeeScript for .coffee assets and views
    gem 'coffee-rails', '~> 4.1.0'
    # See https://github.com/rails/execjs#readme for more supported runtimes
    # gem 'therubyracer', platforms: :ruby
     
    # Use jquery as the JavaScript library
    gem 'jquery-rails'
    # Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
    gem 'turbolinks'
    # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
    gem 'jbuilder', '~> 2.0'
    # bundle exec rake doc:rails generates the API under doc/api.
    gem 'sdoc', '~> 0.4.0', group: :doc
     
    # Use ActiveModel has_secure_password
    # gem 'bcrypt', '~> 3.1.7'
     
    # Use Unicorn as the app server
    # gem 'unicorn'
     
    # Use Capistrano for deployment
    # gem 'capistrano-rails', group: :development
     
    group :development, :test do
      # Call 'byebug' anywhere in the code to stop execution and get a debugger console
      gem 'byebug'
    end
     
    group :development do
      # Access an IRB console on exception pages or by using <%= console %> in views
      gem 'web-console', '~> 2.0'
    end
     
    # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
    gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
    initialement j'ai juste fais un : rails new project (donc pas de code ajouter)

    Merci d'avance

  2. #2
    Membre actif
    Profil pro
    Problem Solver
    Inscrit en
    Juin 2013
    Messages
    138
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations professionnelles :
    Activité : Problem Solver

    Informations forums :
    Inscription : Juin 2013
    Messages : 138
    Points : 231
    Points
    231
    Par défaut
    Je crois que Heroku n'a pas SQLite d'installé.
    Chez toi en dev, utilise SQLite, chez eux en prod, utilise PostGreSQL

    Je suis pas un expert d'Heroku mais ils ont de bonnes docs pour installer la bonne BDD.
    Bon courage !

  3. #3
    Membre confirmé
    Avatar de geforce
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Janvier 2010
    Messages
    1 055
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Canada

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Janvier 2010
    Messages : 1 055
    Points : 559
    Points
    559
    Par défaut
    Finalement cela peut etre util pour d'autres. Le problement et mon "Gemfile.lock" qui ete dans le .gitignore

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. deploiement sur ftpperso.free.fr
    Par lgranie dans le forum Maven
    Réponses: 5
    Dernier message: 08/10/2020, 23h01
  2. Réponses: 4
    Dernier message: 09/07/2009, 15h23
  3. probleme de deploiement sur netbeans
    Par adelpiero dans le forum Glassfish et Payara
    Réponses: 3
    Dernier message: 04/01/2008, 22h21
  4. deploiement sur le net
    Par specialiste1982 dans le forum Installation, Déploiement et Sécurité
    Réponses: 1
    Dernier message: 23/12/2006, 17h52
  5. [Eclipse WTP] Deploiement sur Tomcat 5.5
    Par SEMPERE Benjamin dans le forum Eclipse Java
    Réponses: 2
    Dernier message: 16/02/2006, 08h16

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo