Skip to content

Commit

Permalink
Root was set to show Newsletters #11
Browse files Browse the repository at this point in the history
  • Loading branch information
Pbasnal committed Jul 22, 2014
1 parent e472e41 commit 1270249
Show file tree
Hide file tree
Showing 12 changed files with 27 additions and 60 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ build/
*.log
config/environment.yml
config/mongoid.yml
config/mongoid.yml
config/secrets.yml
3 changes: 1 addition & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,11 @@ GEM
mail (2.5.4)
mime-types (~> 1.16)
treetop (~> 1.4.8)
method_source (0.8.2)
mime-types (1.25.1)
mina (0.3.0)
open4
rake
method_source (0.8.2)
mime-types (1.25.1)
mini_magick (3.7.0)
subexec (~> 0.2.1)
mini_portile (0.6.0)
Expand Down
3 changes: 0 additions & 3 deletions app/assets/javascripts/home.js.coffee

This file was deleted.

4 changes: 0 additions & 4 deletions app/controllers/home_controller.rb

This file was deleted.

2 changes: 0 additions & 2 deletions app/helpers/home_helper.rb

This file was deleted.

8 changes: 0 additions & 8 deletions app/views/home/index.html.haml

This file was deleted.

7 changes: 2 additions & 5 deletions app/views/layouts/application.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,11 @@
%body
%div.nav.navbar-inverse.navbar-fixed-top
%div.container
%div.navbar-header
.navbar-brand
%h4 LightAir
%div.nav-collapse
%ul.nav.navbar-nav
%li.active
%a{href: "#{home_index_path}"}
%h4 Home
%a{href: "#{newsletters_path}"}
%h4 LightAir
%li.dropdown
%a.dropdown-toggle{"data-toggle" => "dropdown"}
%h4
Expand Down
7 changes: 2 additions & 5 deletions app/views/newsletters/index.html.haml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
%table.table.table-striped
%tr
%strong Newsletters
-@newsletters.each do |news|
%tr
%td
=link_to news.sent_on, newsletter_path(news)
%td
=link_to "Edit", edit_newsletter_path(news)
%td
=link_to "Delete", newsletter_path(news), method: :delete
%tr
29 changes: 20 additions & 9 deletions config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,32 @@
# repository - Git repo to clone from. (needed by mina/git)
# branch - Branch name to deploy. (needed by mina/git)

set :domain, '162.243.86.174'
set :deploy_to, '/home/deploy/projects/lightair/production'
set :repository, '[email protected]:joshsoftware/lightair.git'
set :branch, 'master'
set :domain, 'lightair.com'
set :deploy_to, '/home/basnal/www/lightair.com'
set :repository, '[email protected]:joshsoftware/lightair.git'
set :branch, 'master'
set :identity_file, '/home/basnal/.ssh/id_rsa'
set :rails_env, 'production'
set :term_mode, nil

set :current_path, 'current'

# Manually create these paths in shared/ (eg: shared/config/database.yml) in your server.
# They will be linked in the 'deploy:link_shared_paths' step.

set :shared_paths, ['config/mongoid.yml', 'log', 'tmp',
'config/initializers/google_oauth.rb',
'config/environment.yml']

# Optional settings:
set :user, 'deploy' # Username in the server to SSH to.
set :user, 'basnal' # Username in the server to SSH to.
# set :port, '30000' # SSH port number.

# This task is the environment that is loaded for most commands, such as
# `mina deploy` or `mina rake`.
task :environment do
# For those using RVM, use this to load an RVM version@gemset.
invoke :'rvm:use[ruby-2.1.2-p95@gemset]'
invoke :'rvm:use[ruby-2.1.2@lightair]'
end

# Put any custom mkdir's in here for when `mina setup` is ran.
Expand All @@ -41,17 +47,23 @@
queue! %[mkdir -p "#{deploy_to}/shared/log"]
queue! %[chmod g+rx,u+rwx "#{deploy_to}/shared/log"]

queue! %[mkdir -p "#{deploy_to}/shared/tmp"]
queue! %[chmod g+rx,u+rwx "#{deploy_to}/shared/tmp"]

queue! %[mkdir -p "#{deploy_to}/shared/config"]
queue! %[chmod g+rx,u+rwx "#{deploy_to}/shared/config"]

queue! %[touch "#{deploy_to}/shared/config/mongoid.yml"]
queue! %[chmod g+rx,u+rwx "#{deploy_to}/shared/config/mongoid.yml"]

queue! %[mkdir "#{deploy_to}/shared/config/initializers"]
queue! %[chmod g+rx,u+rwx "#{deploy_to}/shared/config/initializers"]

queue! %[touch "#{deploy_to}/shared/config/initializers/google_oauth.rb"]
queue! %[chmod g+rx,u+rwx "#{deploy_to}/shared/config/initializers/google_oauth.rb"]

queue! %[touch "#{deploy_to}/shared/config/initializers/environment.yml"]
queue! %[chmod g+rx,u+rwx "#{deploy_to}/shared/config/initializers/environment.yml"]
queue! %[touch "#{deploy_to}/shared/config/environment.yml"]
queue! %[chmod g+rx,u+rwx "#{deploy_to}/shared/config/environment.yml"]

end

Expand All @@ -77,4 +89,3 @@
# - http://nadarei.co/mina/tasks
# - http://nadarei.co/mina/settings
# - http://nadarei.co/mina/helpers

2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
get '/auth/failure', to: 'spreadsheets#failure'
resources :users, :newsletters, :home, :spreadsheets

root :to => 'home#index'
root :to => 'newsletters#index'

# The priority is based upon order of creation: first created -> highest priority.
# See how all your routes lay out with "rake routes".
Expand Down
5 changes: 0 additions & 5 deletions spec/controllers/home_controller_spec.rb

This file was deleted.

15 changes: 0 additions & 15 deletions spec/helpers/home_helper_spec.rb

This file was deleted.

0 comments on commit 1270249

Please sign in to comment.