Skip to main content

Push ruby sinatra project to heroku with rake db:migration

>Terminal:
mccrazy@Lenovo-N22:~$ cd Documents/crazynote
mccrazy@Lenovo-N22:~/Documents/proyekto/r226$ rake db:create_migration NAME=create_doctors
db/migrate/20170506042338_create_doctors.rb
mccrazy@Lenovo-N22:~/Documents/proyekto/r226$ rake db:migrate
== 20170506042338 CreateDoctors: migrating ====================================
-- adapter_name()
   -> 0.0000s
-- adapter_name()
   -> 0.0000s
-- create_table(:doctors, {:id=>:integer})
   -> 0.0034s
== 20170506042338 CreateDoctors: migrated (0.0041s) ===========================

mccrazy@Lenovo-N22:~/Documents/proyekto/r226$ git add .
mccrazy@Lenovo-N22:~/Documents/proyekto/r226$ git commit -am "initial project up to db:migrate"
[master (root-commit) 3e86239] initial project up to db:migrate
 9 files changed, 220 insertions(+)
 create mode 100644 .rvmrc
 create mode 100644 Gemfile
 create mode 100644 Gemfile.lock
 create mode 100644 Rakefile
 create mode 100644 config/database-config.rb
 create mode 100644 db/DevDb.sqlite3
 create mode 100644 db/migrate/20170506042338_create_doctors.rb
 create mode 100644 db/schema.rb
 create mode 100644 myapi.rb
mccrazy@Lenovo-N22:~/Documents/proyekto/r226$ git push
fatal: No configured push destination.
Either specify the URL from the command-line or configure a remote repository using

    git remote add <name> <url>

and then push using the remote name

    git push <name>

mccrazy@Lenovo-N22:~/Documents/proyekto/r226$ git push heroku master
Counting objects: 14, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (13/13), done.
Writing objects: 100% (14/14), 4.32 KiB | 0 bytes/s, done.
Total 14 (delta 0), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Ruby app detected
remote: -----> Compiling Ruby/Rack
remote: -----> Using Ruby version: ruby-2.2.6
remote: -----> Installing dependencies using bundler 1.13.7
remote:        Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
remote:        Warning: the running version of Bundler (1.13.7) is older than the version that created the lockfile (1.14.6). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
remote:        Fetching gem metadata from http://rubygems.org/.........
remote:        Fetching version metadata from http://rubygems.org/.
remote:        Installing minitest 5.10.1
remote:        Installing i18n 0.8.1
remote:        Installing concurrent-ruby 1.0.5
remote:        Installing thread_safe 0.3.6
remote:        Installing arel 8.0.0
remote:        Installing pg 0.20.0 with native extensions
remote:        Installing rack 1.6.5
remote:        Installing tilt 2.0.7
remote:        Using bundler 1.13.7
remote:        Installing tzinfo 1.2.3
remote:        Installing rack-protection 1.5.3
remote:        Installing sinatra 1.4.8
remote:        Installing activesupport 5.1.0
remote:        Installing activemodel 5.1.0
remote:        Installing activerecord 5.1.0
remote:        Installing sinatra-activerecord 2.0.13
remote:        Bundle complete! 7 Gemfile dependencies, 16 gems now installed.
remote:        Gems in the groups development and test were not installed.
remote:        Bundled gems are installed into ./vendor/bundle.
remote:        Bundle completed (12.88s)
remote:        Cleaning up the bundler cache.
remote:        Warning: the running version of Bundler (1.13.7) is older than the version that created the lockfile (1.14.6). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
remote: -----> Detecting rake tasks
remote:
remote: ###### WARNING:
remote:        No Procfile detected, using the default web server.
remote:        We recommend explicitly declaring how to boot your server process via a Procfile.
remote:        https://devcenter.heroku.com/articles/ruby-default-web-server
remote:
remote: -----> Discovering process types
remote:        Procfile declares types     -> (none)
remote:        Default types for buildpack -> console, rake, web
remote:
remote: -----> Compressing...
remote:        Done: 19.4M
remote: -----> Launching...
remote:        Released v5
remote:        https://r226.herokuapp.com/ deployed to Heroku
remote:
remote: Verifying deploy... done.
To https://git.heroku.com/r226.git
 * [new branch]      master -> master
mccrazy@Lenovo-N22:~/Documents/proyekto/r226$ heroku run rake db:migrate
Running rake db:migrate on ⬢ r226... up, run.2131 (Free)
== 20170506042338 CreateDoctors: migrating ====================================
-- adapter_name()
   -> 0.0000s
-- adapter_name()
   -> 0.0000s
-- create_table(:doctors, {:id=>:integer})
   -> 0.0147s
== 20170506042338 CreateDoctors: migrated (0.0152s) ===========================

mccrazy@Lenovo-N22:~/Documents/proyekto/r226$

Comments

Popular posts from this blog

Ubuntu 16.04 LT - Installing Chromium browser

> Type these commands about this PPA : $ sudo add-apt-repository ppa:canonical-chromium-builds/stage $ sudo apt-get update $ sudo apt-get install chromium-browser > Terminal: mccrazy@Lenovo-N22:~$ sudo add-apt-repository ppa:canonical-chromium-builds/stage [sudo] password for mccrazy:  Testing site just before upload to Ubuntu main. Things here are either broken and not ready to use, or landing in the distro anyway very soon. You shouldn't use this.  More info: https://launchpad.net/~canonical-chromium-builds/+archive/ubuntu/stage Press [ENTER] to continue or ctrl-c to cancel adding it gpg: keyring `/tmp/tmp6cfppy_r/secring.gpg' created gpg: keyring `/tmp/tmp6cfppy_r/pubring.gpg' created gpg: requesting key 5B393194 from hkp server keyserver.ubuntu.com gpg: /tmp/tmp6cfppy_r/trustdb.gpg: trustdb created gpg: key 5B393194: public key "Launchpad PPA for Canonical Chromium Build Team" imported gpg: Total number processed: 1 gpg:               imported: 1  (RSA...

Ubuntu 20.04 LTS | Installing OpenJDK 11 (LTS) JDK, JRE, HotSpot

https://adoptopenjdk.net/installation.html#linux-pkg ctrl + f => Linux RPM and DEB installer packages bboy@bboy-LE7450:~$ cat /etc/os-release | grep UBUNTU_CODENAME UBUNTU_CODENAME=focal bboy@bboy-LE7450:~$ sudo apt-get install wget apt-transport-https gnupg [sudo] password for bboy: Reading package lists... Done Building dependency tree       Reading state information... Done wget is already the newest version (1.20.3-1ubuntu1). wget set to manually installed. gnupg is already the newest version (2.2.19-3ubuntu2.1). gnupg set to manually installed. The following packages were automatically installed and are no longer required:   linux-headers-5.8.0-45-generic linux-hwe-5.8-headers-5.8.0-45   linux-image-5.8.0-45-generic linux-modules-5.8.0-45-generic   linux-modules-extra-5.8.0-45-generic Use 'sudo apt autoremove' to remove them. The following NEW packages will be installed:   apt-transport-https 0 upgraded, 1 newly installed, 0 to remove and 21 not upgraded. Need to get 1,...