railshoster 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.textile CHANGED
@@ -51,6 +51,10 @@ h3. 0.3.0
51
51
 
52
52
  * SSH publick key file recognition and upload to authorized_keys to enable a passwordless deploy.rb.
53
53
 
54
- h3. 0.4.0
54
+ h3. 0.5.0
55
55
 
56
- * Now also works for RailsHoster VPS (virtual Servers).
56
+ * Now also works for RailsHoster VPS (virtual Servers).
57
+
58
+ h3. 0.5.1
59
+
60
+ * Bugfix in deploy.rb.
data/ROADMAP.textile CHANGED
@@ -9,7 +9,9 @@ h2. 1.0.0
9
9
 
10
10
  h3. Product Backlog
11
11
 
12
- * Mailer-Configuration
12
+ * Check capistrano return status when deploying with railshoster deploy.
13
+ * Mailer configuration - for railshoter shared hosting
14
+ * Mailer configuration - for railshoster vps
13
15
  * Multistage Deployments - Deploy an app to a shared hosting (e.g. dev) and to a VPS (production).
14
16
 
15
17
  h3. General TODOs
@@ -106,7 +106,7 @@ module Railshoster
106
106
  def create_remote_authorized_key_file(host, ssh_username, password, key, remote_dot_ssh_path = ".ssh", target_username = nil)
107
107
  remote_authorized_keys_path = remote_dot_ssh_path + "/authorized_keys"
108
108
  Net::SFTP.start(host, ssh_username, :password => password) do |sftp|
109
-
109
+
110
110
  #TODO Smarter way to determine home directory
111
111
  stats = sftp.stat!("/home/#{target_username}") if target_username
112
112
 
@@ -1,3 +1,3 @@
1
1
  module Railshoster
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
@@ -50,7 +50,12 @@ default_run_options[:pty] = true
50
50
  set :use_sudo, false
51
51
 
52
52
  # set the location where to deploy the new project
53
+
54
+ <% if app["t"].eql?("h") then %>
53
55
  set :deploy_to, "/home/#{user}/#{application}"
56
+ <% else %>
57
+ set :deploy_to, "/var/www/#{user}"
58
+ <% end %>
54
59
 
55
60
  # live
56
61
  role :app, "<%= app["h"]%>"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: railshoster
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 0
10
- version: 0.5.0
9
+ - 1
10
+ version: 0.5.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Julian Fischer