记录:在heroku上部署ROR项目

rubyhou@ubuntu:~/RubymineProjects/Cat$ sudo add-apt-repository "deb https://cli-assets.heroku.com/branches/stable/apt ./"
[sudo] password for rubyhou: 
rubyhou@ubuntu:~/RubymineProjects/Cat$ curl -L https://cli-assets.heroku.com/apt/release.key | sudo apt-key add -
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1737  100  1737    0     0    786      0  0:00:02  0:00:02 --:--:--   786
OK
rubyhou@ubuntu:~/RubymineProjects/Cat$ sudo apt-get update
Get:1 http://archive.ubuntukylin.com:10006/ubuntukylin xenial InRelease [18.1 kB]
Ign:2 http://dl.google.com/linux/chrome/deb stable InRelease                   
Hit:3 http://dl.google.com/linux/chrome/deb stable Release                     
Get:4 https://cli-assets.heroku.com/branches/stable/apt ./ InRelease [2,533 B] 
Hit:6 http://ppa.launchpad.net/ubuntu-desktop/ubuntu-make/ubuntu xenial InRelease
Get:7 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB]     
Get:8 https://cli-assets.heroku.com/branches/stable/apt ./ Packages [620 B]    
Hit:9 http://us.archive.ubuntu.com/ubuntu xenial InRelease                     
Get:10 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]   
Hit:11 http://ppa.launchpad.net/webupd8team/sublime-text-2/ubuntu xenial InRelease
Hit:12 http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu xenial InRelease
Get:13 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Get:14 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [793 kB]
Get:15 http://us.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [725 kB]
Get:16 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [634 kB]
Get:17 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [579 kB]
Fetched 3,075 kB in 18s (163 kB/s)                                             
Reading package lists... Done
rubyhou@ubuntu:~/RubymineProjects/Cat$ sudo apt-get install heroku
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-4.8.0-54 linux-headers-4.8.0-54-generic
  linux-image-4.8.0-54-generic linux-image-extra-4.8.0-54-generic
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  heroku
0 upgraded, 1 newly installed, 0 to remove and 261 not upgraded.
Need to get 14.0 MB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 https://cli-assets.heroku.com/branches/stable/apt ./ heroku 7.0.94-1 [14.0 MB]
Fetched 14.0 MB in 16s (857 kB/s)                                              
Selecting previously unselected package heroku.
(Reading database ... 302418 files and directories currently installed.)
Preparing to unpack .../heroku_7.0.94-1_amd64.deb ...
Unpacking heroku (7.0.94-1) ...
Setting up heroku (7.0.94-1) ...
rubyhou@ubuntu:~/RubymineProjects/Cat$ heroku login
heroku: Enter your login credentials
Email: houchuanhao@imudges.com
Password: *************
Logged in as houchuanhao@imudges.com
rubyhou@ubuntu:~/RubymineProjects/Cat$ git clone https://github.com/heroku/ruby-getting-started.git
Cloning into 'ruby-getting-started'...
remote: Counting objects: 358, done.
remote: Total 358 (delta 0), reused 0 (delta 0), pack-reused 358
Receiving objects: 100% (358/358), 70.39 KiB | 0 bytes/s, done.
Resolving deltas: 100% (137/137), done.
Checking connectivity... done.
rubyhou@ubuntu:~/RubymineProjects/Cat$ ls
app     config.ru  Gemfile.lock  Profile   README.md             tmp
bin     db         lib           public    ruby-getting-started  vendor
config  Gemfile    log           Rakefile  test
rubyhou@ubuntu:~/RubymineProjects/Cat$ remove -rf ruby-getting-started/
remove: command not found
rubyhou@ubuntu:~/RubymineProjects/Cat$ rm -rf ruby-getting-started/
rubyhou@ubuntu:~/RubymineProjects/Cat$ ls
app  config     db       Gemfile.lock  log      public    README.md  tmp
bin  config.ru  Gemfile  lib           Profile  Rakefile  test       vendor
rubyhou@ubuntu:~/RubymineProjects/Cat$ cd ..
rubyhou@ubuntu:~/RubymineProjects$ ls
Cat
rubyhou@ubuntu:~/RubymineProjects$ git clone https://github.com/heroku/ruby-getting-started.git
Cloning into 'ruby-getting-started'...
remote: Counting objects: 358, done.
remote: Total 358 (delta 0), reused 0 (delta 0), pack-reused 358
Receiving objects: 100% (358/358), 70.39 KiB | 0 bytes/s, done.
Resolving deltas: 100% (137/137), done.
Checking connectivity... done.
rubyhou@ubuntu:~/RubymineProjects$ ls
Cat  ruby-getting-started
rubyhou@ubuntu:~/RubymineProjects$ cd ruby-getting-started/
RVM used your Gemfile for selecting Ruby, it is all fine - Heroku does that too,
you can ignore these warnings with 'rvm rvmrc warning ignore /home/rubyhou/RubymineProjects/ruby-getting-started/Gemfile'.
To ignore the warning for all files run 'rvm rvmrc warning ignore allGemfiles'.

Unknown ruby interpreter version (do not know how to handle): >=2.3.5,<2.6.
rubyhou@ubuntu:~/RubymineProjects/ruby-getting-started$ ls
app       bin     config.ru  Gemfile       lib  Procfile  Rakefile   test
app.json  config  db         Gemfile.lock  log  public    README.md  vendor
rubyhou@ubuntu:~/RubymineProjects/ruby-getting-started$ heroku create
Creating app... done, ⬢ enigmatic-caverns-87832
https://enigmatic-caverns-87832.herokuapp.com/ | https://git.heroku.com/enigmatic-caverns-87832.git
rubyhou@ubuntu:~/RubymineProjects/ruby-getting-started$ git push heroku master 
Counting objects: 352, done.
Compressing objects: 100% (193/193), done.
Writing objects: 100% (352/352), 68.30 KiB | 0 bytes/s, done.
Total 352 (delta 134), reused 352 (delta 134)
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> Ruby app detected
remote: -----> Compiling Ruby/Rails
remote: -----> Using Ruby version: ruby-2.4.4
remote: -----> Installing dependencies using bundler 1.15.2
remote:        Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
remote:        Warning: the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.16.1). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
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:        Fetching rake 12.3.0
remote:        Fetching concurrent-ruby 1.0.5
remote:        Fetching minitest 5.11.1
remote:        Installing minitest 5.11.1
remote:        Installing rake 12.3.0
remote:        Installing concurrent-ruby 1.0.5
remote:        Fetching thread_safe 0.3.6
remote:        Installing thread_safe 0.3.6
remote:        Fetching builder 3.2.3
remote:        Installing builder 3.2.3
remote:        Fetching erubi 1.7.0
remote:        Fetching mini_portile2 2.3.0
remote:        Fetching crass 1.0.4
remote:        Installing erubi 1.7.0
remote:        Installing mini_portile2 2.3.0
remote:        Fetching rack 2.0.3
remote:        Installing crass 1.0.4
remote:        Fetching nio4r 2.2.0
remote:        Installing rack 2.0.3
remote:        Installing nio4r 2.2.0 with native extensions
remote:        Fetching websocket-extensions 0.1.3
remote:        Installing websocket-extensions 0.1.3
remote:        Fetching mini_mime 1.0.0
remote:        Installing mini_mime 1.0.0
remote:        Fetching arel 8.0.0
remote:        Installing arel 8.0.0
remote:        Using bundler 1.15.2
remote:        Fetching coffee-script-source 1.12.2
remote:        Fetching execjs 2.7.0
remote:        Installing coffee-script-source 1.12.2
remote:        Installing execjs 2.7.0
remote:        Fetching method_source 0.9.0
remote:        Fetching thor 0.20.0
remote:        Installing method_source 0.9.0
remote:        Installing thor 0.20.0
remote:        Fetching ffi 1.9.18
remote:        Fetching multi_json 1.13.1
remote:        Installing multi_json 1.13.1
remote:        Installing ffi 1.9.18 with native extensions
remote:        Fetching json 1.8.6
remote:        Installing json 1.8.6 with native extensions
remote:        Fetching pg 0.19.0
remote:        Installing pg 0.19.0 with native extensions
remote:        Fetching puma 3.11.2
remote:        Installing puma 3.11.2 with native extensions



remote:        Fetching rails_serve_static_assets 0.0.5
remote:        Installing rails_serve_static_assets 0.0.5
remote:        Fetching rails_stdout_logging 0.0.5
remote:        Installing rails_stdout_logging 0.0.5
remote:        Fetching rb-fsevent 0.10.2
remote:        Installing rb-fsevent 0.10.2
remote:        Fetching rdoc 4.3.0
remote:        Installing rdoc 4.3.0
remote:        Fetching tilt 2.0.8
remote:        Installing tilt 2.0.8
remote:        Fetching turbolinks-source 5.1.0
remote:        Installing turbolinks-source 5.1.0
remote:        Fetching i18n 0.9.3
remote:        Installing i18n 0.9.3
remote:        Fetching tzinfo 1.2.4
remote:        Installing tzinfo 1.2.4
remote:        Fetching nokogiri 1.8.2
remote:        Installing nokogiri 1.8.2 with native extensions
remote:        Fetching websocket-driver 0.6.5
remote:        Installing websocket-driver 0.6.5 with native extensions
remote:        Fetching mail 2.7.0
remote:        Installing mail 2.7.0
remote:        Fetching rack-test 0.8.2
remote:        Installing rack-test 0.8.2
remote:        Fetching sprockets 3.7.1
remote:        Installing sprockets 3.7.1
remote:        Fetching uglifier 4.1.4
remote:        Installing uglifier 4.1.4
remote:        Fetching coffee-script 2.4.1
remote:        Installing coffee-script 2.4.1
remote:        Fetching rb-inotify 0.9.10
remote:        Installing rb-inotify 0.9.10
remote:        Fetching rails_12factor 0.0.3
remote:        Installing rails_12factor 0.0.3
remote:        Fetching turbolinks 5.1.0
remote:        Installing turbolinks 5.1.0
remote:        Fetching activesupport 5.1.4
remote:        Installing activesupport 5.1.4
remote:        Fetching sdoc 0.4.2
remote:        Installing sdoc 0.4.2
remote:        Fetching sass-listen 4.0.0
remote:        Installing sass-listen 4.0.0
remote:        Fetching globalid 0.4.1
remote:        Installing globalid 0.4.1
remote:        Fetching activemodel 5.1.4
remote:        Installing activemodel 5.1.4
remote:        Fetching jbuilder 2.7.0
remote:        Installing jbuilder 2.7.0
remote:        Fetching sass 3.5.5
remote:        Installing sass 3.5.5
remote:        Fetching activejob 5.1.4
remote:        Installing activejob 5.1.4
remote:        Fetching activerecord 5.1.4
remote:        Installing activerecord 5.1.4
remote:        Fetching rails-dom-testing 2.0.3
remote:        Fetching loofah 2.2.2
remote:        Installing rails-dom-testing 2.0.3
remote:        Installing loofah 2.2.2
remote:        Fetching rails-html-sanitizer 1.0.4
remote:        Installing rails-html-sanitizer 1.0.4
remote:        Fetching actionview 5.1.4
remote:        Installing actionview 5.1.4
remote:        Fetching actionpack 5.1.4
remote:        Installing actionpack 5.1.4
remote:        Fetching actionmailer 5.1.4
remote:        Fetching actioncable 5.1.4
remote:        Fetching railties 5.1.4
remote:        Installing actionmailer 5.1.4
remote:        Installing actioncable 5.1.4
remote:        Installing railties 5.1.4
remote:        Fetching sprockets-rails 3.2.1
remote:        Installing sprockets-rails 3.2.1
remote:        Fetching jquery-rails 4.3.1
remote:        Fetching coffee-rails 4.2.2
remote:        Fetching rails 5.1.4
remote:        Installing coffee-rails 4.2.2
remote:        Installing rails 5.1.4
remote:        Fetching sass-rails 5.0.7
remote:        Installing sass-rails 5.0.7
remote:        Installing jquery-rails 4.3.1
remote:        Bundle complete! 12 Gemfile dependencies, 63 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 (34.74s)
remote:        Cleaning up the bundler cache.
remote:        Warning: the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.16.1). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
remote:        The latest bundler is 1.16.2, but you are currently running 1.15.2.
remote:        To update, run `gem install bundler`
remote: -----> Installing node-v8.10.0-linux-x64
remote: -----> Detecting rake tasks
remote: -----> Preparing app for Rails asset pipeline
remote:        Running: rake assets:precompile
remote:        I, [2018-06-14T02:19:46.561938 #1543]  INFO -- : Writing /tmp/build_fd3b8ac76a50c09b4bc3961c13c2dff2/public/assets/lang-logo-975635515a3eba8a4dbe12956ddcce29610bf587eba6f72c1a66e6a4c97dce44.png
remote:        I, [2018-06-14T02:19:50.058889 #1543]  INFO -- : Writing /tmp/build_fd3b8ac76a50c09b4bc3961c13c2dff2/public/assets/application-4511ec4337880f6a344b08efe8a95a8b34d351f3aa3baac4fa41e065c36aeab2.js
remote:        I, [2018-06-14T02:19:50.059156 #1543]  INFO -- : Writing /tmp/build_fd3b8ac76a50c09b4bc3961c13c2dff2/public/assets/application-4511ec4337880f6a344b08efe8a95a8b34d351f3aa3baac4fa41e065c36aeab2.js.gz
remote:        I, [2018-06-14T02:19:50.094048 #1543]  INFO -- : Writing /tmp/build_fd3b8ac76a50c09b4bc3961c13c2dff2/public/assets/application-4b3e7d10f15531ed01fb27360f045b1be6bfd6a2788cbe7cba29ebf78f04be4b.css
remote:        I, [2018-06-14T02:19:50.094229 #1543]  INFO -- : Writing /tmp/build_fd3b8ac76a50c09b4bc3961c13c2dff2/public/assets/application-4b3e7d10f15531ed01fb27360f045b1be6bfd6a2788cbe7cba29ebf78f04be4b.css.gz
remote:        Asset precompilation completed (4.95s)
remote:        Cleaning assets
remote:        Running: rake assets:clean
remote: -----> Detecting rails configuration
remote: 
remote: -----> Discovering process types
remote:        Procfile declares types     -> web
remote:        Default types for buildpack -> console, rake, worker
remote: 
remote: -----> Compressing...
remote:        Done: 36M
remote: -----> Launching...
remote:        Released v5
remote:        https://enigmatic-caverns-87832.herokuapp.com/ deployed to Heroku
remote: 
remote: Verifying deploy... done.
To https://git.heroku.com/enigmatic-caverns-87832.git
 * [new branch]      master -> master
rubyhou@ubuntu:~/RubymineProjects/ruby-getting-started$ 
rubyhou@ubuntu:~/RubymineProjects/ruby-getting-started$ 
rubyhou@ubuntu:~/RubymineProjects/ruby-getting-started$ 
rubyhou@ubuntu:~/RubymineProjects/ruby-getting-started$ heroku open
 ▸    Error opening web browser.
 ▸    Error: Exited with code 4
 ▸    
 ▸    Manually visit https://enigmatic-caverns-87832.herokuapp.com/ in
 ▸    your browser.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值