templates/default/bootstrap.rb in rails-maker-0.1.1 vs templates/default/bootstrap.rb in rails-maker-0.1.7
- old
+ new
@@ -1,76 +1,50 @@
-require "net/http"
-require "net/https"
-require "uri"
-require 'rbconfig'
-say "Building Application with the rails-maker..."
+#require "net/http"
+#require "net/https"
+#require "uri"
+#require 'rbconfig'
-def get_remote_https_file(source, destination)
- uri = URI.parse(source)
- http = Net::HTTP.new(uri.host, uri.port)
- http.use_ssl = true
- http.verify_mode = OpenSSL::SSL::VERIFY_NONE
- request = Net::HTTP::Get.new(uri.request_uri)
- response = http.request(request)
- path = File.join(destination_root, destination)
- File.open(path, "w") { |file| file.write(response.body) }
-end
+say 'Building Application with the rails-maker...'
-git :init
+files = []
+files << 'general'
+files << 'git'
+files << 'gemfile'
+files << 'db'
+files << 'application_layout'
+#files << 'home_controller'
+files << 'css'
+#files << 'test_suite'
+#files << 'authentication'
+#files << 'authorization'
+#files << 'admin'
+files << 'routes'
+files << 'initializers'
-run 'rm .gitignore'
-create_file '.gitignore' do
-<<-FILE
-.bundle
-.DS_Store
-log/*.log
-tmp/**/*
-config/database.yml
-db/*.sqlite3
-public/system/**/**/**/*
-.idea/*
-.sass-cache/**/*
-*.swp
-public/uploads
-FILE
-end
-
-files = %w{
- gemfile
- haml_generator
- rails_clean
- application_layout
- home_controller
- css
- test_suite
- authentication
- authorization
- admin
- db
- db_seed
-}
-
files.each do |file|
apply File.expand_path("../lib/#{file}.rb", __FILE__)
end
-login_msg = (ENV['RAILSMAKER_ADMIN']) ? "Login to admin with email #{ENV['RAILSMAKER_USER_EMAIL']} and password #{ENV['RAILSMAKER_USER_PASSWORD']}" : ""
-
+## INITIAL COMMIT
+git add: "."
+git commit: "-a -m 'Initial commit'"
+
+## FURTHER INSTRUCTIONS
say <<-D
-
########################################################################
The rails-maker just added like 6 hours to your life.
- Template Installed :: Default
+ Next:
+ 1 - copy content of config/example-databse.yml to config/database.yml
+ 2 - write your username and password for database access, write your database names or leave default for all environments in database.yml
+ 3 - run 'rake db:create'
+ 4 - write your secret, public keys and appid in initializers/raven.rb
+ 5 - generate and copy newrelic.yml file to config directory
+ 6 - run 'rails s' from your project directory
- Next run...
-
- rake spec
- rails s
-
- #{login_msg}
+ Login to admin with email admin@local.host and password admin123
########################################################################
D
\ No newline at end of file