pointer 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. data/README.md +43 -8
  2. data/TODO.md +2 -0
  3. data/bin/pointer +2 -2
  4. data/lib/pointer/version.rb +1 -1
  5. metadata +4 -4
data/README.md CHANGED
@@ -1,20 +1,55 @@
1
- # Pointer
1
+ # Super-simple deployment!
2
2
 
3
- Super-simple deployment! (Yes, I'll write a README)
3
+ Do you have Rails app and a clean server? Now you can easily deploy your app and setup continuous deployment
4
+ in 2 commands.
4
5
 
5
- ## Installation
6
+ ## What it does?
7
+
8
+ It takes a clean server, sshes into it via `root` and creates an user `rails`, installs RVM, nginx/Passenger,
9
+ configures mina for deployment, deploys a simple application that exposes a WebHook that updates the application.
6
10
 
7
- Add this line to your application's Gemfile:
11
+ ## Assumptions (for now)
8
12
 
9
- gem 'pointer'
13
+ * You have a clean Ubuntu 12.10 Server (no installations of nginx, rvm or anything, just clean server)
14
+ * You have root password to that server
15
+ * You are ok to use RVM, nginx/Passenger (no Apache yet), mina (no Capistrano yet) to Production
16
+ * You need a Postgres database on Production
17
+ * You need a `rails` user to work with your apps
18
+ * You host your code with some Git hosting (BitBucket offers free private repositories)
10
19
 
11
- And then execute:
20
+ ## Status
12
21
 
13
- $ bundle
22
+ Very much *alpha*
23
+
24
+ ## Installation
14
25
 
15
- Or install it yourself as:
26
+ Get a clean Ubuntu 12.10 server (other Linuxes and versions are not yet tested).
16
27
 
17
28
  $ gem install pointer
29
+ $ pointer init
30
+
31
+ Edit the file `config/pointer.rb`
32
+
33
+ $ pointer deploy:prepare
34
+
35
+ After that:
36
+
37
+ $ pointer
38
+
39
+ You'll see a list of basic commands.
40
+
41
+ If you did not setup a WebHook (POST) - you can do this:
42
+
43
+ $ mina deploy
44
+
45
+ to deploy your code (you need to push to git first).
46
+
47
+ ## Known warnings !
48
+
49
+ WebHook is currently at a known location, calling it with POST exposes a lot of information (it outputs the mina
50
+ output). I'm not sure yet that is a security breach somehow, but be advised. I'll update it later. (That will probably get fixed)
51
+
52
+ User `rails` currently has a no password sudo. (That will probably get fixed)
18
53
 
19
54
  ## Contributing
20
55
 
data/TODO.md CHANGED
@@ -32,3 +32,5 @@ session identifier shared
32
32
  check for gem pg in Gemfile
33
33
 
34
34
  backups?
35
+
36
+ publish without git? local deploy?
data/bin/pointer CHANGED
@@ -37,7 +37,7 @@ if ARGV[0] == 'init'
37
37
  IO.write('.gitignore', gitignore)
38
38
  end
39
39
 
40
- elsif ARGV[0] == 'deploy'
40
+ elsif ARGV[0] == 'deploy:prepare'
41
41
  require './' + config_file
42
42
  Pointer::EasyDeploy.new.run! @options
43
43
 
@@ -52,7 +52,7 @@ elsif ARGV[0] == 'ssh:log'
52
52
  else
53
53
  puts "You can run those:"
54
54
  puts " pointer init"
55
- puts " pointer deploy"
55
+ puts " pointer deploy:prepare"
56
56
  puts " pointer ssh"
57
57
  puts " pointer ssh:log"
58
58
  end
@@ -1,3 +1,3 @@
1
1
  module Pointer
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pointer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -151,7 +151,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
151
151
  version: '0'
152
152
  segments:
153
153
  - 0
154
- hash: -4480820461649365695
154
+ hash: 3479741334444265196
155
155
  required_rubygems_version: !ruby/object:Gem::Requirement
156
156
  none: false
157
157
  requirements:
@@ -160,10 +160,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
160
160
  version: '0'
161
161
  segments:
162
162
  - 0
163
- hash: -4480820461649365695
163
+ hash: 3479741334444265196
164
164
  requirements: []
165
165
  rubyforge_project:
166
- rubygems_version: 1.8.23
166
+ rubygems_version: 1.8.25
167
167
  signing_key:
168
168
  specification_version: 3
169
169
  summary: Quick deploy