Forum: Ruby on Rails distributing a rails application

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
222784b8a601c9e9786cd0291e58fb7a?d=identicon&s=25 Little Known (littleknown)
on 2008-12-18 05:25
What are the standard best practices for sharing your rails application
on the web?

As far as I can tell, you just delete the logs directory and clear out
the database.yml

What am I forgetting?
9a2a53db8e9b4476038c94a64b32833f?d=identicon&s=25 Ryan Bigg (ryan-bigg)
on 2008-12-18 05:31
(Received via mailing list)
Github!

All the entries from my .gitignore file:

log/*.log
log/searchd*
tmp/*
db/*.sqlite3
db/sphinx/*
config/database.yml
test
coverage
coverage/*
config/*.sphinx.conf
config/deploy.rb

-----
Ryan Bigg
Freelancer
http://frozenplague.net
6fabb84e727dee98d1277df56458cbac?d=identicon&s=25 Andrew Bloom (Guest)
on 2008-12-18 05:34
(Received via mailing list)
why ignore the test dir? dont you want to share those?
9a2a53db8e9b4476038c94a64b32833f?d=identicon&s=25 Ryan Bigg (ryan-bigg)
on 2008-12-18 06:12
(Received via mailing list)
I have a spec dir, not a test dir.
-----
Ryan Bigg
Freelancer
http://frozenplague.net
Aafa8848c4b764f080b1b31a51eab73d?d=identicon&s=25 Phlip (Guest)
on 2008-12-18 17:42
(Received via mailing list)
Little Known wrote:

> What are the standard best practices for sharing your rails application
> on the web?
>
> As far as I can tell, you just delete the logs directory and clear out
> the database.yml
>
> What am I forgetting?

To share with other programmers, you develop out of an open version
control hub
such as RubyForge or GitHub (?). Don't commit your logs or database.yml,
but do
commit a database.yml.example with a scrubbed copy of your private
database.yml.

To share with end-users, you should key your database to a Group model,
which
has many Staff model objects. When a Staff logs in, they only see
database
records in their Group. Then you can sell your app - as a service - to
as many
Groups as you can qualify, and each group cannot see the other groups'
data.

--
   Phlip
Aafa8848c4b764f080b1b31a51eab73d?d=identicon&s=25 Phlip (Guest)
on 2008-12-18 17:45
(Received via mailing list)
Ryan Bigg wrote:

> I have a spec dir, not a test dir.

Don't brag! (-:

--
   Phlip
This topic is locked and can not be replied to.