幻觉1 上传到heroku

Published on:

开始

if没上传过的专案

打开Gemfile
移动splite3至group:development:text do
置于`gem 'byebug', platform: :mri`下  `end`上

像这样
```
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platform: :mri

gem 'sqlite3'

end


在最后加

group :production do
gem ‘pg’
end
```
保存 command+s
终端运行 bundle install

end

git add .
git commit -m ”…”

if想上传到新的heroku专案

heroku login  (新的heroku专案需要)
heroku create   (新的heroku专案需要)

end

git remote -v (确认自己在哪个heroku专案底下)

if不是想要的专案

```  git remote rm heroku
git remote add heroku https://git.heroku.com/....../git

```

end

git push heroku ch08:master
heroku run rake db:migrate

heroku run

end

Comments

comments powered by Disqus