ratchetify 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4ec4df90fc1d35e8dbc3e926941de1b4ddf40131
4
- data.tar.gz: f83dc562279ef6e25fd6096d3b64f6bf24d8b988
3
+ metadata.gz: d1642637c62a0ba026cc72b376a2c10718a871ee
4
+ data.tar.gz: e8cd65658d74fb2ddb57d64e91da7ec96b94c78f
5
5
  SHA512:
6
- metadata.gz: fa70a0efa1a00b16758a182ba0453fc864ae859124f0ce3b41412cb14f3fb2db1e1b7404b74a7277f62eb5e157fad72fca14db48ac2770c00471b514bcd39c5d
7
- data.tar.gz: 1c924f17be19a6de26379b7b2014ab8ae890cd78afdd0a9bead9abce262015548fde636dd3c13fe29445cdb82aa25d74ce595be6792ce85205164f5da8d3befa
6
+ metadata.gz: 5cfd893ce78bc5aeda520ce2143d253a1caaf5dae089a16adffa06c3dba0f925fc248d25da44620e0348f02421cff90709075844acc280d65ec3ac7ae30d3c0f
7
+ data.tar.gz: 5faf620ad51d72e4dc604cb2cbcc10519a3ccd70011279829735a8d89f48d34c887322f6f76ffbc9c2e4f940bf575532c1e4f166b2b707316a805ee05c534f36
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in uberspacify.gemspec
3
+ # Specify your gem's dependencies in ratchetify.gemspec
4
4
  gemspec
data/README.md CHANGED
@@ -2,28 +2,65 @@
2
2
 
3
3
  Ratchetify helps you deploy a Ruby on Rails app on Uberspace (uberspace.de), a really cool shared hosting provider.
4
4
 
5
- All the magic is built into a couple nice Capistrano scripts. Ratchetify will create an environment for your app, run it in standalone mode, monitor it using Daemontools, and configure Apache to reverse-proxy to it. Ratchetify will also retrieve your MySQL password, create a dedicated database for your app and create a `database.yml`.
5
+ All the magic is built into a couple of capistrano scripts. Ratchetify creates an environment for your app (folders, ruby, bundler etc) and then pulls the app from e.g. github or bitbucket. To instantly run the app, ratchetify creates a database and matching database.yml file, adds a .htaccess file to the app's root folder (so that Apache can reverse-proxy all requests) and finally runs the typical rake tasks (db:create, db:migrate, etc) to get going.
6
+
7
+ The app is serverd by the Unicorn app server and monitored by Uberspace's daemontools.
6
8
 
7
9
  ## Installation
8
10
 
9
11
  Add this line to your application's `Gemfile`:
10
12
 
11
13
  ```ruby
12
- gem 'ratchetify', :git => 'https://github.com/ratchetcc/ratchetify.git'
14
+ gem 'ratchetify'
13
15
  ```
14
16
 
15
17
  And then execute:
16
18
 
17
- $ bundle
19
+ $ bundle install
18
20
 
19
- This will install ratchetify, Capistrano 2.x and all dependent gems for you.
21
+ This will install ratchetify and all its dependencies for you.
20
22
 
21
23
  ## How to use ratchetify
22
24
 
23
- There is a sample [capfile](https://github.com/ratchetcc/ratchetify/blob/master/Capfile.example) that shows the most important settings you need to get started. In addition to the
24
- attributes used in the Capfile, there are more attributes pre-set in lib/ratchetify.rb and lib/ratchetify/base.rb but usually there is no need to change any of these.
25
+ There is a sample [capfile](https://github.com/ratchetcc/ratchetify/blob/master/Capfile.example) that shows the most important settings you need to get started. In addition to the attributes used in the Capfile, there are more attributes pre-set in lib/ratchetify.rb and lib/ratchetify/base.rb but usually there is no need to change any of these.
26
+
27
+ This tools is highly opinionated i.e. all the settings, the way how the app is deployed and run etc., ARE THE WAY I LIKE IT ! :-)
28
+
29
+ The first time ratchetify is used on a fresh uberspace, it creates some folders and symbolic links from your home directory to these folders. The ~/html folder that by default hosts e.g. a static .html app is removed. The reason for this is that ratchetify allows you to deploy and run many apps side-by-side, within a single uberspace.
30
+
31
+ ### Basic commands
32
+
33
+ To get started with a new Rails app, use:
34
+
35
+ ```shell
36
+ $ rat create:rails
37
+ ```
38
+
39
+ This prepares your uberspace if it is the first time you deploy an app using ratchetify, pulls your app from a repo, creates a database and database.yml for it, creates a run-script and registers it with uberspace's daemontools and finally runs the typical rake tasks needed to setup a RAILS app.
40
+
41
+ Ratchetify also registers your app's host-name and domain with the Apache webserver, you only have to make sure that your DNS entries point to the right uberspace.
42
+
43
+ To update an app, use:
25
44
 
26
- This tools is highly opinionated i.e. all the settings, the way how I run the app etc. are THE WAY I LIKE IT. This does not mean it can not be done differently or that it is the best way to do it ...
45
+ ```shell
46
+ $ rat update
47
+ ```
48
+
49
+ This stops the app, pulls the latest version from the repo, runs basic rake tasks and finally restarts the app.
50
+
51
+ To remove an app use:
52
+
53
+ ```shell
54
+ $ rat remove
55
+ ```
56
+
57
+ This stops the app, deletes its database and removes it from the file system. Be careful here, there is no way back!
58
+
59
+ Ratchetify is based on Capistrano and you can get a list of all available commands any time using:
60
+
61
+ ```shell
62
+ $ rat -T
63
+ ```
27
64
 
28
65
  ## Credits
29
66
 
@@ -11,7 +11,7 @@ Capistrano::Configuration.instance.load do
11
11
 
12
12
  # ruby #{ruby_version} environment
13
13
  export PATH=/package/host/localhost/ruby-#{ruby_version}/bin:$PATH
14
- export PATH=$HOME/.gem/ruby/#{ruby_version}/bin:$PATH
14
+ export PATH=$HOME/.gem/ruby/#{:ruby_api_version}/bin:$PATH
15
15
  EOF
16
16
 
17
17
  # setup the ruby environment
@@ -1,3 +1,3 @@
1
1
  module Ratchetify
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
data/lib/ratchetify.rb CHANGED
@@ -24,7 +24,8 @@ Capistrano::Configuration.instance.load do
24
24
  set :type, :rails # supported types are: :rails, :wordpress,
25
25
 
26
26
  # internal variables, should not be changed in the cap file
27
- set :ruby_version, "2.0.0"
27
+ set :ruby_version, "2.1.1"
28
+ set :ruby_api_version, "2.1.0"
28
29
  set :environment, 'production'
29
30
  set :is_main, false
30
31
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ratchetify
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Kuehl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-11 00:00:00.000000000 Z
11
+ date: 2014-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano