Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Simple web app: Rails 3.2 + Bootstrap + Font Awesome
Ruby JavaScript CoffeeScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
bin
config
db
doc
lib
log
public
script
test
vendor
.gitignore
Gemfile
Gemfile.lock
Procfile
README.md
Rakefile
config.ru

README.md

Fortunka

Heroku:

heroku create --stack cedar
  Creating sharp-ocean-6085... done, stack is cedar
  http://sharp-ocean-6085.herokuapp.com/ | git@heroku.com:sharp-ocean-6085.git
  Git remote heroku added

Zmieniony .git/config po remote add:

[core]
    repositoryformatversion = 0
    filemode = true
    bare = false
    logallrefupdates = true
[remote "heroku"]
    url = git@heroku.com:sharp-ocean-6085.git
    fetch = +refs/heads/*:refs/remotes/heroku/*

Po sklonowaniu repo z Github'a plik .git/config jest taki:

[core]
    repositoryformatversion = 0
    filemode = true
    bare = false
    logallrefupdates = true
[remote "origin"]
    fetch = +refs/heads/*:refs/remotes/origin/*
    url = git@github.com:wbzyl/sharp-ocean-6085.git
[branch "master"]
    remote = origin
    merge = refs/heads/master

Dopisujemy do niego info o Heroku:

[remote "heroku"]
    url = git@heroku.com:sharp-ocean-6085.git
    fetch = +refs/heads/*:refs/remotes/heroku/*

Teraz pushing na Heroku wykonujemy tak:

git push heroku master  #? git push -u origin master

a pushing na GitHub – tak:

git push

Po sklonowaniu repozytorium z GitHub'a, możemy dodać tracking branch:

git branch -a
* master
  remotes/origin/HEAD -> origin/master
  remotes/origin/master
  remotes/origin/remote-destroy

w taki sposób:

git checkout --track origin/remote-destroy
git branch
  master
* remote-destroy

Workflow

Tworzymy nową gałąź i wrzucamy ją na Github'a:

git checkout -b base-bootstrap-app
git push origin base-bootstrap-app

Playing with Remote Destroy

Zaczynamy od instalacji jQuery UI.

Dopisujemy do Gemfile:

gem 'jquery-rails'
gem 'jquery-ui-rails'

do pliku application.js:

//= require jquery
//= require jquery.ui.all
//= require jquery_ujs
//= require twitter/bootstrap

i do pliku application.css:

 *= require_self
 *= require jquery.ui.all
 *= require sharp-ocean

Changed files:

app/
|-- assets
|   |-- images
|   |-- javascripts
|   |   |-- application.js
|   |   `-- templates
|   |       `-- show.jst.ejs
|   `-- stylesheets
|       |-- application.css.less
|       `-- digg_pagination.less
`-- views
    |-- fortunes
    |   `-- index.html.erb
Something went wrong with that request. Please try again.