Browse Source

app naming

pull/1/head
Nicolae Claudius 13 years ago
parent
commit
c457881950
  1. 2
      Rakefile
  2. 2
      config.ru
  3. 2
      config/application.rb
  4. 2
      config/database.yml.sample
  5. 2
      config/deploy.rb
  6. 2
      config/environment.rb
  7. 2
      config/environments/development.rb
  8. 6
      config/environments/production.rb
  9. 2
      config/environments/test.rb
  10. 2
      config/initializers/devise.rb
  11. 2
      config/initializers/secret_token.rb
  12. 4
      config/initializers/session_store.rb
  13. 2
      config/nginx.conf.sample
  14. 2
      config/routes.rb

2
Rakefile

@ -4,4 +4,4 @@
require File.expand_path('../config/application', __FILE__)
Simpledns::Application.load_tasks
Entrydns::Application.load_tasks

2
config.ru

@ -1,4 +1,4 @@
# This file is used by Rack-based servers to start the application.
require ::File.expand_path('../config/environment', __FILE__)
run Simpledns::Application
run Entrydns::Application

2
config/application.rb

@ -9,7 +9,7 @@ if defined?(Bundler)
# Bundler.require(:default, :assets, Rails.env)
end
module Simpledns
module Entrydns
class Application < Rails::Application
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers

2
config/database.yml.sample

@ -22,7 +22,7 @@ production:
adapter: mysql2
encoding: utf8
reconnect: false
database: simpledns_production
database: entrydns_production
pool: 5
username: root
password: root

2
config/deploy.rb

@ -1,6 +1,6 @@
require 'bundler/capistrano'
set :application, 'simpledns'
set :application, 'entrydns'
set :domain, 'zooz.dyndns.org'
set :repository, "ssh://#{domain}/home/clyfe/dev/#{application}.git"
set :deploy_to, '/srv/www/apps/entrydns'

2
config/environment.rb

@ -2,4 +2,4 @@
require File.expand_path('../application', __FILE__)
# Initialize the rails application
Simpledns::Application.initialize!
Entrydns::Application.initialize!

2
config/environments/development.rb

@ -1,4 +1,4 @@
Simpledns::Application.configure do
Entrydns::Application.configure do
# Settings specified here will take precedence over those in config/application.rb
# In the development environment your application's code is reloaded on

6
config/environments/production.rb

@ -1,4 +1,4 @@
Simpledns::Application.configure do
Entrydns::Application.configure do
# Settings specified here will take precedence over those in config/application.rb
# Code is not reloaded between requests
@ -58,12 +58,12 @@ Simpledns::Application.configure do
# Send deprecation notices to registered listeners
config.active_support.deprecation = :notify
config.action_mailer.default_url_options = { :host => 'simpledns.heroku.com' }
config.action_mailer.default_url_options = { :host => 'entrydns.com' }
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
:address => "smtp.gmail.com",
:port => 587,
:domain => 'simpledns.heroku.com',
:domain => 'entrydns.com',
:user_name => 'simpledns.office',
:password => 'jablonskis',
:authentication => 'plain',

2
config/environments/test.rb

@ -1,4 +1,4 @@
Simpledns::Application.configure do
Entrydns::Application.configure do
# Settings specified here will take precedence over those in config/application.rb
# The test environment is used exclusively to run your application's

2
config/initializers/devise.rb

@ -4,7 +4,7 @@ Devise.setup do |config|
# ==> Mailer Configuration
# Configure the e-mail address which will be shown in Devise::Mailer,
# note that it will be overwritten if you use your own mailer class with default "from" parameter.
config.mailer_sender = "office@simpledns.net"
config.mailer_sender = "office@entrydns.net"
# Configure the class responsible to send e-mails.
# config.mailer = "Devise::Mailer"

2
config/initializers/secret_token.rb

@ -4,4 +4,4 @@
# If you change this key, all old signed cookies will become invalid!
# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attacks.
Simpledns::Application.config.secret_token = '0ce1f02a4b3fc4d1a1c8d22973b21e8589e9314dc338294953f0b985e3f44f12c8af74f2d9ba6f7c7bdb736c4efc5ea3f8135e23b1a036d033cd23331383ac75'
Entrydns::Application.config.secret_token = '0ce1f02a4b3fc4d1a1c8d22973b21e8589e9314dc338294953f0b985e3f44f12c8af74f2d9ba6f7c7bdb736c4efc5ea3f8135e23b1a036d033cd23331383ac75'

4
config/initializers/session_store.rb

@ -1,8 +1,8 @@
# Be sure to restart your server when you modify this file.
Simpledns::Application.config.session_store :cookie_store, key: '_simpledns_session'
Entrydns::Application.config.session_store :cookie_store, key: '_entrydns_session'
# Use the database for sessions instead of the cookie-based default,
# which shouldn't be used to store highly confidential information
# (create the session table with "rails generate session_migration")
# Simpledns::Application.config.session_store :active_record_store
# Entrydns::Application.config.session_store :active_record_store

2
config/nginx.conf.sample

@ -3,7 +3,7 @@ server {
server_name domain.com;
location / {
root /var/www/apps/simpledns/current/public;
root /var/www/apps/entrydns/current/public;
passenger_enabled on;
}
}

2
config/routes.rb

@ -1,4 +1,4 @@
Simpledns::Application.routes.draw do
Entrydns::Application.routes.draw do
devise_for :users

Loading…
Cancel
Save