railman 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/railman/cli.rb +4 -3
- data/lib/railman/version.rb +1 -1
- metadata +1 -2
- data/templates/rails_app/TODO.md +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b100823312ce49c02322e16cfef41f73ef95155e
|
4
|
+
data.tar.gz: c9f22f759be405a465ddb0c9b3dd911207e40172
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40ccd083bf099d2fc00cdbffea89e455f4b4cc11a47c92b901122a777711435ac2b90fa3086fe62c6a2456229f9498e37b9eed3a16ca4694f74196381556ed81
|
7
|
+
data.tar.gz: f82ff80148f3a7225b059fcb7ed488e09eef38bd43938c6ff2cf80fd7ac6fde1b2e350ea5b41cbdeadc9ca5e9f11a16176879dbb2f468cd486de50889c479cb1
|
data/lib/railman/cli.rb
CHANGED
@@ -23,7 +23,7 @@ module Railman
|
|
23
23
|
config = create_config(app_name)
|
24
24
|
apply_rails_template(config)
|
25
25
|
say "The rails application '#{app_name}' was successfully created.", :green
|
26
|
-
say "Please check the settings in .env", :blue
|
26
|
+
say "Please check the settings in .env and run 'rake db:create' to create the local databases.", :blue
|
27
27
|
end
|
28
28
|
|
29
29
|
desc "upgrade APPNAME", "Upgrade the rails upplication named APPNAME"
|
@@ -32,7 +32,6 @@ module Railman
|
|
32
32
|
config = load_config(app_name)
|
33
33
|
apply_rails_template(config, false)
|
34
34
|
say "The rails application '#{app_name}' was successfully upgraded.", :green
|
35
|
-
say "Please check the settings in .env", :blue
|
36
35
|
end
|
37
36
|
|
38
37
|
private
|
@@ -77,11 +76,13 @@ module Railman
|
|
77
76
|
gem_server_url: gem_server_url(:bitbucket))
|
78
77
|
@rake_secret = "TODO: generate with: rake secret"
|
79
78
|
@unicorn_behind_nginx = true
|
80
|
-
directory "rails_app", @config.app_name
|
81
79
|
if create
|
80
|
+
directory "rails_app", @config.app_name
|
82
81
|
@rake_secret = Railman::Secret.generate_secret
|
83
82
|
@unicorn_behind_nginx = false
|
84
83
|
template "rails_app/.env.example.development.tt", "#{@config.app_name}/.env"
|
84
|
+
else
|
85
|
+
directory "rails_app", @config.app_name, exclude_pattern: /home_controller|index\.html\.erb/
|
85
86
|
end
|
86
87
|
save_config(@config)
|
87
88
|
Dir.chdir @config.app_name do
|
data/lib/railman/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: railman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igor Jancev
|
@@ -172,7 +172,6 @@ files:
|
|
172
172
|
- templates/rails_app/Gemfile
|
173
173
|
- templates/rails_app/README.md
|
174
174
|
- templates/rails_app/Rakefile
|
175
|
-
- templates/rails_app/TODO.md
|
176
175
|
- templates/rails_app/app/assets/images/.keep
|
177
176
|
- templates/rails_app/app/assets/javascripts/application.js
|
178
177
|
- templates/rails_app/app/assets/stylesheets/application.sass
|
data/templates/rails_app/TODO.md
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
# TODO
|
2
|
-
|
3
|
-
This file describes what you have to customize after you create a new rails application with railman
|
4
|
-
|
5
|
-
## .env
|
6
|
-
|
7
|
-
Check your settings in .env (database user/password, smpt server, emails, ...)
|
8
|
-
|
9
|
-
.env is gitignored. This is intended. You should create a local .env file on every server your deploy your rails application to, and modify the settings for that server.
|
10
|
-
|
11
|
-
Try to keep all the application/server/environment specific settings, as well as all passwords here, as .env is not commited to git and exists only on a server or local user machine. This will also make future rails upgrades and changes in the configuration files less painful.
|
12
|
-
|
13
|
-
## create local database
|
14
|
-
|
15
|
-
Run `rake db:create`
|