facing error - ruby application deployment on azure

mani 1 Reputation point
2020-02-23T09:50:35.113+00:00

1 . git push azure master
error: src refspec master does not match any.
error: failed to push some refs to 'https://MyAppName@MyAppName.scm.azurewebsites.net/MyAppName.git'

  1. :~/rubyrails-tasks$ bundle install --path vendor/bundle
    Fetching gem metadata from https://rubygems.org/............
    Using rake 12.3.1
    Using concurrent-ruby 1.0.5
    Using i18n 1.0.1
    Using minitest 5.11.3
    Using thread_safe 0.3.6
    Using tzinfo 1.2.5
    Using activesupport 5.1.6
    Using builder 3.2.3
    Using erubi 1.7.1
    Using mini_portile2 2.3.0
    Using nokogiri 1.8.2
    Using rails-dom-testing 2.0.3
    Using crass 1.0.4
    Using loofah 2.2.2
    Using rails-html-sanitizer 1.0.4
    Using actionview 5.1.6
    Using rack 2.0.5
    Using rack-test 1.0.0
    Using actionpack 5.1.6
    Using nio4r 2.3.1
    Using websocket-extensions 0.1.3
    Using websocket-driver 0.6.5
    Using actioncable 5.1.6
    Using globalid 0.4.1
    Using activejob 5.1.6
    Using mini_mime 1.0.0
    Using mail 2.7.0
    Using actionmailer 5.1.6
    Using activemodel 5.1.6
    Using arel 8.0.0
    Using activerecord 5.1.6
    Using public_suffix 3.0.2
    Using addressable 2.5.2
    Using bindex 0.5.0
    Using bundler 1.16.4
    Using byebug 10.0.2
    Using xpath 3.1.0
    Using capybara 2.18.0
    Using ffi 1.9.25
    Using childprocess 0.9.0
    Using coffee-script-source 1.12.2
    Using execjs 2.7.0
    Using coffee-script 2.4.1
    Using method_source 0.9.0
    Using thor 0.20.0
    Using railties 5.1.6
    Using coffee-rails 4.2.2
    Using commonjs 0.2.7
    Using multi_json 1.13.1
    Using jbuilder 2.7.0
    Using jquery-rails 4.3.3
    Using less 2.6.0
    Using sprockets 3.7.1
    Using tilt 2.0.8
    Using less-rails 2.8.0
    Using libv8 3.16.14.19 (x86_64-linux)
    Using rb-fsevent 0.10.3
    Using rb-inotify 0.9.10
    Using ruby_dep 1.5.0
    Using listen 3.1.5
    Fetching pg 1.0.0
    Installing pg 1.0.0 with native extensions
    Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current directory: /home/mani/rubyrails-tasks/vendor/bundle/ruby/2.3.0/gems/pg-1.0.0/ext
    /usr/local/bin/ruby -r ./siteconf20200223-11233-1210i5y.rb extconf.rb
    checking for pg_config... yes
    Using config values from /usr/bin/pg_config
    checking for libpq-fe.h... no
    Can't find the 'libpq-fe.h header
    extconf.rb failed

Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/local/bin/$(RUBY_BASE_NAME)
--with-pg
--without-pg
--enable-windows-cross
--disable-windows-cross
--with-pg-config
--without-pg-config
--with-pg_config
--without-pg_config
--with-pg-dir
--without-pg-dir
--with-pg-include
--without-pg-include=${pg-dir}/include
--with-pg-lib
--without-pg-lib=${pg-dir}/lib

To see why this extension failed to compile, please check the mkmf.log which can be found here:

/home/mani/rubyrails-tasks/vendor/bundle/ruby/2.3.0/extensions/x86_64-linux/2.3.0/pg-1.0.0/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /home/mani/rubyrails-tasks/vendor/bundle/ruby/2.3.0/gems/pg-1.0.0 for inspection.
Results logged to /home/mani/rubyrails-tasks/vendor/bundle/ruby/2.3.0/extensions/x86_64-linux/2.3.0/pg-1.0.0/gem_make.out

An error occurred while installing pg (1.0.0), and Bundler cannot continue.
Make sure that gem install pg -v '1.0.0' --source 'https://rubygems.org/' succeeds before bundling.

In Gemfile:
pg

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,831 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. BTardif-[MSFT] 351 Reputation points
    2020-02-28T17:03:46.527+00:00

    did you add and commit files before pushing?

    this looks like a git error on your local box and I don't think it's app service related.

    See --> https://stackoverflow.com/questions/4181861/message-src-refspec-master-does-not-match-any-when-pushing-commits-in-git

    0 comments No comments