Deploying

10 views
Skip to first unread message

Mike

unread,
Apr 24, 2008, 1:54:10 AM4/24/08
to Chuckslist
What is the best way to deploy this app on a server?

Can you post instructions?

thanks

mike

RubyMan

unread,
Apr 24, 2008, 4:21:29 AM4/24/08
to Chuckslist
Hi,

I am also trying to make it work on my local machine.

Since there is no scaffolding available and i am a newbie, i do not
know how to enter few entries in the database.

I have already migrated all the tables, NOW... i am waiting for some
options to insert few ads and members and admins in the table.

Can any one help me....

Thanks

RubyMan

Alex

unread,
Apr 24, 2008, 8:17:55 AM4/24/08
to Chuckslist
Hi Mike,
Did you check out the installation instructions in the ChucksList
archive? There is a file at doc/INSTALL that goes through step by
step how to install the app:
1. uncompress the archive
2. edit database.yml
3. load the category fixtures (rake db:fixtures:import or rake
db:fixtures:import RAILS_ENV=production)
4. edit site specific settings in environment.rb, /config/
environments/ and app/models/mailman.rb
5. startup the app and get admin access by going to the url /account/
signup/
6. set up email forwarding/redirection on your server

As far as the specifics of deploying it with Capistrano etc. that will
vary from server to server, but if you were to just upload the app and
follow the steps in the doc/INSTALL file you ought to be able to get
it going.

Thanks.

Alex

Alex

unread,
Apr 24, 2008, 8:19:36 AM4/24/08
to Chuckslist

> I have already migrated all the tables, NOW... i am waiting for some
> options to insert few ads and members and admins in the table.

I don't understand - are you trying to launch/deploy ChucksList with
ads already in it?

Jonathan

unread,
Apr 25, 2008, 8:19:52 PM4/25/08
to Chuckslist
Alex. Do I need to modify the shebang line in ALL of the files if my
path to ruby is:
#! usr/bin/env ruby

Jonathan

unread,
Apr 26, 2008, 12:13:00 AM4/26/08
to Chuckslist
rake db:fixtures:import RAILS_ENV=production

yields:

rake aborted!
no such file to load-- home/localmachine/web/config/boot

any ideas on how to fix?

it is the proper version of rils

kyrre

unread,
Apr 26, 2008, 3:40:39 AM4/26/08
to Chuckslist
this should all be small matter..

a note on the shebang though, i don't think there's suppose to be a
space between #! and usr/bin/env ruby..

Jonathan

unread,
Apr 26, 2008, 12:54:08 PM4/26/08
to Chuckslist
the shebang line is fine, however, im not sure how to fix the rake
error. any ideas?

Jonathan

unread,
Apr 26, 2008, 5:28:20 PM4/26/08
to Chuckslist
here is the full output:

rake aborted!
no such file to load -- /home/localmachine/web/config/boot
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original _require'
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
/home/localmachine/web/Rakefile:4
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:2149:in
`load'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:2149:in
`raw_load_rakef ile'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1897:in
`load_rakefile'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in
`standard_excep
tion_handling'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1896:in
`load_rakefile'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1880:in `run'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in
`standard_excep
tion_handling'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:in `run'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/bin/rake:31
/opt/local/bin/rake:19:in `load'
/opt/local/bin/rake:19

any suggestions?

Jonathan

unread,
Apr 27, 2008, 3:39:18 AM4/27/08
to Chuckslist
this problem has been solved. i had to move the config folder out of
the doc folder and into the main directory. however, this screwed up
the css styling. is there a way to fix this?

also, i am having problems configuring the mail server, can someone
provide better instructions on how to create the mailman alias from
postfix

Jonathan

unread,
Apr 27, 2008, 3:41:40 AM4/27/08
to Chuckslist
everything else is functional, except i receive an error when trying
to post a new ad (i think this is email related, if not, can someone
help?)

Jacques Crocker

unread,
Apr 27, 2008, 3:46:14 AM4/27/08
to chuck...@googlegroups.com
Yeah, setting up postfix is a pain. I initially had it set up, but
kept getting "local recipient denied" exceptions or some crap.

I'd suggest following PJ Hyett's advice and outsource it. Reliable
mail delivery is actually more complicated than it seems.
http://dynamite.errfree.com/posts/75-guaranteeing-email-delivery

Here's another potentially helpful link:
http://pauldowman.com/2008/02/17/smtp-mail-from-ec2-web-server-setup/

-Jacques

kyrre

unread,
Apr 27, 2008, 5:31:54 AM4/27/08
to Chuckslist
jacques, why are you always trying to pump money outta people?

don't believe that shit jonathan, postfix is supersimple.. it's
absolutely gorgeous

this is how i've set it up on freebsd

--

/usr/local/etc/postfix/main.cf:

mail_owner = postfix
home_mailbox = .maildir/

mydomain = bloodrails.net
myhostname = blahblah.bloodrails.net
mynetworks = 127.0.0.0/8

myorigin = $mydomain
mydestination = $mydomain, localhost.$mydomain, $myhostname

smtpd_recipient_restrictions =
#
# This will reduce spam.
#
reject_rbl_client zen.spamhaus.org
reject_rbl_client dnsbl.ahbl.org
reject_rbl_client dnsbl.njabl.org
permit_mynetworks
reject_unauth_destination
#
# This will completely fucking eliminate it ;)
#
check_policy_service inet:127.0.0.1:10023

unknown_local_recipient_reject_code = 450

queue_directory = /var/spool/postfix
command_directory = /usr/local/sbin
daemon_directory = /usr/local/libexec/postfix
sendmail_path = /usr/local/sbin/sendmail
newaliases_path = /usr/local/bin/newaliases
mailq_path = /usr/local/bin/mailq
sample_directory = /usr/local/etc/postfix

--

/etc/rc.conf:

postfix_enable="YES"
postgrey_enable="YES"
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"

--

it uses postgrey to filter out most of the spam..

for more help try freenode #postfix =)

have fun

On Apr 27, 9:46 am, Jacques Crocker <jcnet...@gmail.com> wrote:
> Yeah, setting up postfix is a pain. I initially had it set up, but
> kept getting "local recipient denied" exceptions or some crap.
>
> I'd suggest following PJ Hyett's advice and outsource it. Reliable
> mail delivery is actually more complicated than it seems.http://dynamite.errfree.com/posts/75-guaranteeing-email-delivery

kyrre

unread,
Apr 27, 2008, 5:33:05 AM4/27/08
to Chuckslist
other than that yo check http://www.postfix.net/docs.html, but you
probably knew that

On Apr 27, 9:46 am, Jacques Crocker <jcnet...@gmail.com> wrote:
> Yeah, setting up postfix is a pain. I initially had it set up, but
> kept getting "local recipient denied" exceptions or some crap.
>
> I'd suggest following PJ Hyett's advice and outsource it. Reliable
> mail delivery is actually more complicated than it seems.http://dynamite.errfree.com/posts/75-guaranteeing-email-delivery

Jacques Crocker

unread,
Apr 27, 2008, 5:34:36 AM4/27/08
to chuck...@googlegroups.com
Hah, well, if you got the skillz, I say don't pay. Time is money,
unless you work for the government :-)

-Jacques

Jonathan

unread,
Apr 27, 2008, 1:44:16 PM4/27/08
to Chuckslist
alright, thanks, ill give it a shot and report back. im assuming that
the reaosn i get an error when i try to post a listing is because of
the email setup

kyrre

unread,
Apr 27, 2008, 3:30:31 PM4/27/08
to Chuckslist
dude what's the error?

Jonathan

unread,
Apr 27, 2008, 4:34:19 PM4/27/08
to Chuckslist
the error i was receiving was because i didnt have postfix configured
properly. thats all set. you should consider moving the config folder
from doc/config to the main directory b/c that was giving me a lot of
problems on installation

it screws up the css (weird, i know, it shouldnt) but it works
flawlessly

kyrre

unread,
Apr 27, 2008, 4:47:38 PM4/27/08
to Chuckslist
the config never was in the doc, you must have moved it there by a
mistake ;)

so, what are u gonna use chuckslist for? :P
Reply all
Reply to author
Forward
0 new messages