time tracker: think private 'twitter' that counts the duration of status messages.
Ruby JavaScript
Switch branches/tags
staging-2010-07-16-3-wfarr-add-usertime-to-iphone-view staging-2010-07-16-2-wfarr-fix-usertime staging-2010-07-16-1-wfarr-add-usertime-to-xtt staging-2010-07-02-5-skalnik-fixed-missed-conflict staging-2010-07-02-4-skalnik-campfire-changes staging-2010-07-02-3-wfarr-more-style-changes staging-2010-07-02-2-wfarr-fix-previous-deploy staging-2010-07-02-1-wfarr-add-auto-linking-to-statuses staging-2010-07-01-2-wfarr-allow-longer-project-codes staging-2010-07-01-1-skalnik-api-calls-to-status-number-create staging-2010-06-30-1-skalnik-added-api-keys staging-2010-06-28-5-skalnik-added-user-removal-from-project staging-2010-06-28-4-wfarr-fix-invite-emails staging-2010-06-28-3-wfarr-update-helps staging-2010-06-28-2-wfarr-fix-dj-config staging-2010-06-28-1-wfarr-password-filtering-ftw staging-2010-06-28-1-skalnik-fixed-legend-errors staging-2010-06-25-1-skalnik-fixed-context-issue staging-2010-06-25-1-skalnik-added-chart-legends staging-2010-06-24-1-skalnik-fixed-context-issues staging-2010-06-21-1-skalnik-fixed-status-bug staging-2010-06-18-1-wfarr-trying-to-deploy staging-2010-06-18-1-wfarr-makes-my-wildest-dreams-come-true staging-2010-06-18-1-wfarr-lots-of-fixes staging-2010-06-18-1-wfarr-fix-lots-of-bugs staging-2010-06-18-1-wfarr-fix-a-bug-in-certain-context-links staging-2010-06-18-1-skalnik-hoptoad staging-2010-06-18-1-skalnik-fixed-nil-dot-strftime-issue staging-2010-06-18-1-skalnik-fixed-hours-error staging-2010-06-18-1-skalnik-fixed-bugs production-2010-07-16-3-wfarr-add-usertime-to-iphone-view production-2010-07-16-2-wfarr-fix-usertime production-2010-07-16-1-wfarr-add-usertime-to-xtt production-2010-07-02-3-wfarr-more-style-changes production-2010-07-02-2-wfarr-fix-previous-deploy production-2010-07-01-1-skalnik-api-calls-to-status-number-create production-2010-06-30-1-skalnik-added-api-keys production-2010-06-28-4-wfarr-fix-invite-emails production-2010-06-28-3-wfarr-update-helps production-2010-06-28-2-wfarr-fix-dj-config production-2010-06-28-1-wfarr-password-filtering-ftw production-2010-06-28-1-skalnik-fixed-legend-errors production-2010-06-25-1-skalnik-added-chart-legends production-2010-06-21-1-skalnik-fixed-status-bug production-2010-06-18-1-wfarr-trying-to-deploy production-2010-06-18-1-wfarr-fix-a-bug-in-certain-context-links production-2010-06-18-1-skalnik-hoptoad
Nothing to show
Pull request Compare This branch is 865 commits ahead of jerrod:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
config
db
lib
log
public
script
spec
test
tmp
vendor
.gitignore
Capfile
LICENSE
README
README.markdown
Rakefile
agpl.txt

README.markdown

Getting Started in Development

cp config/database.sample.yml config/database.yml
rake gems:install
rake db:create:all db:schema:load

Run the specs:

rake spec

Oh wait, there are massive spec failures. I'll try to hack on that later.

To use at http://localhost:3000/ :

  • Add a user at http://localhost:3000/signup
  • If you don't get a confirmation email (which you likely won't since you don't have the mail sending configured), check log/development.log for a copy of the confirmation email that would have been sent to you, copy and paste the activation url from it into the browser toolbar (should look like the following: http://tt.entp.com/activate/db61f839776898cedee72fcb9f87465d797e2e93 - of course, replace tt.entp.com with your dev server address.

Deploying

To deploy, you need to create the following files (we provide also the default template for those files to get you started):

config/deploy/production.rb

set :rails_env, :production
server 'example.com', :app, :web, :db, :primary => true

config/deploy/staging.rb

set :rails_env, :staging
server 'staging.example.com', :app, :web, :db, :primary => true

config/initializers/usertime_config.rb

Stop::UserTime.configure do |config|
  config.key = "sekrit"
end

config/initializers/custom.rb

TT_HOST  = 'example.com'
TT_EMAIL = 'admin@example.com'
SIGNUPS_ENABLED = false

ActiveSupport::CoreExtensions::Time::Conversions::DATE_FORMATS.update \
 :time => '%I:%M %p'

config/moonshine/production.yml

# production-specific moonshine configuration
#
# You can set anything here that you might normally put in config/moonshine.yml, but will only apply to production

# Primary domain application will be accessed as 
:domain: example.com

# Domain aliases for applaction. One common use of this is for asset hosts.
#:domain_aliases:
#  - assets1.yourapp.com
#  - assets2.yourapp.com

config/moonshine/staging.yml

# staging-specific moonshine configuration
#
# You can set anything here that you might normally put in config/moonshine.yml, but will only apply to staging

# Primary domain application will be accessed as 
:domain: staging.example.com

# Domain aliases for applaction. One common use of this is for asset hosts.
#:domain_aliases:
#  - staging.assets1.yourapp.com
#  - staging.assets2.yourapp.com

Once you've added those files and made changes as appropriate, you should be able to get going and just use regular old moonshine deployment techniques.