Hello, Yesterday I "subversioned" my app using svn and now everything works fine except I don''t see any log entries in development.log? What would cause the log entries to be not produced anymore? Thanks Frank --------------------------------- Bring words and photos together (easily) with PhotoMail - it''s free and works with Yahoo! Mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060202/d8612983/attachment.html
Hi Frank ~ I am not sure what you mean by "subversioned", but is your app running in development mode? If so the development log should be created unless there is a permission issue on where it is trying to write the log. I personally do not commit my logs to my svn repository. I only have the log directory in the repository, so when I move the app, the DIR is there... ~ Ben On 2/2/06, softwareengineer 99 <softwareengineer99@yahoo.com> wrote:> > Hello, > > Yesterday I "subversioned" my app using svn and now everything works fine > except I don''t see any log entries in development.log? > What would cause the log entries to be not produced anymore? > > Thanks > Frank > > ------------------------------ > Bring words and photos together (easily) with > PhotoMail > <http://us.rd.yahoo.com/mail_us/taglines/PMHM3/*http://photomail.mail.yahoo.com>- it''s free and works with Yahoo! Mail. > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >-- Ben Reubenstein http://www.benr75.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060202/e8821425/attachment.html
On Feb 2, 2006, at 18:46, softwareengineer 99 wrote:> Hello, > > Yesterday I "subversioned" my app using svn and now everything > works fine except I don''t see any log entries in development.log? > What would cause the log entries to be not produced anymore?If there are several developers in that application logs are not under version control normally, they are local. Not that this explains why they are not being written.
Hi Ben, Thanks for your reply. Yes, my app is running in development mode. By "subversioned" I mean I moved the app to a SVN repository. Before the move the logs were being written to logs/development.log. Now nothing is being written as I move from page to page. I don''t want to commit my logs to the repository but would like to have access to them as I develop. How can I change where the logs are being written? Thanks Frank Ben Reubenstein <benr@x-cr.com> wrote: Hi Frank ~ I am not sure what you mean by "subversioned", but is your app running in development mode? If so the development log should be created unless there is a permission issue on where it is trying to write the log. I personally do not commit my logs to my svn repository. I only have the log directory in the repository, so when I move the app, the DIR is there... ~ Ben On 2/2/06, softwareengineer 99 <softwareengineer99@yahoo.com> wrote: Hello, Yesterday I "subversioned" my app using svn and now everything works fine except I don''t see any log entries in development.log? What would cause the log entries to be not produced anymore? Thanks Frank --------------------------------- Bring words and photos together (easily) with PhotoMail - it''s free and works with Yahoo! Mail. _______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails -- Ben Reubenstein http://www.benr75.com _______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails --------------------------------- What are the most popular cars? Find out at Yahoo! Autos -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060202/10e17170/attachment.html
Hello Xavier, Thanks for your reply. I am the only developer working. Thanks Frank Xavier Noria <fxn@hashref.com> wrote: On Feb 2, 2006, at 18:46, softwareengineer 99 wrote:> Hello, > > Yesterday I "subversioned" my app using svn and now everything > works fine except I don''t see any log entries in development.log? > What would cause the log entries to be not produced anymore?If there are several developers in that application logs are not under version control normally, they are local. Not that this explains why they are not being written. _______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails --------------------------------- What are the most popular cars? Find out at Yahoo! Autos -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060202/302aa943/attachment.html
On 02/02/06, softwareengineer 99 <softwareengineer99@yahoo.com> wrote:> By "subversioned" I mean I moved the app to a SVN repository. Before the > move the logs were being written to logs/development.log. Now nothing is > being written as I move from page to page. > > I don''t want to commit my logs to the repository but would like to have > access to them as I develop. > > How can I change where the logs are being written?You may safely leave logs where they are, just tell svn to ignore them: from your application main directory do: # svn propset svn:ignore "*.log" log # svn ci -m "Ignoring log files" log Now for the problem with empty log files. I have had the same problem today and I fixed it just by deleting all contents of log directory. On next run of ./script/server everything was ok. -- ?ukasz Piestrzeniewicz
Thanks for your reply. I followed the steps you mentioned and the logs work when using script/server however no log entries are made when using Apache. Any suggestions on how I can see the logs when accessing the application through Apache? Thanks Frank ??ukasz Piestrzeniewicz <bragi.ragnarson@gmail.com> wrote: On 02/02/06, softwareengineer 99 wrote:> By "subversioned" I mean I moved the app to a SVN repository. Before the > move the logs were being written to logs/development.log. Now nothing is > being written as I move from page to page. > > I don''t want to commit my logs to the repository but would like to have > access to them as I develop. > > How can I change where the logs are being written?You may safely leave logs where they are, just tell svn to ignore them: from your application main directory do: # svn propset svn:ignore "*.log" log # svn ci -m "Ignoring log files" log Now for the problem with empty log files. I have had the same problem today and I fixed it just by deleting all contents of log directory. On next run of ./script/server everything was ok. -- ??ukasz Piestrzeniewicz _______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails --------------------------------- Yahoo! Mail - Helps protect you from nasty viruses. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060204/0badfc05/attachment-0001.html
Does the user apache runs as have permissions to write to the log directory? On 2/4/06, softwareengineer 99 <softwareengineer99@yahoo.com> wrote:> Thanks for your reply. > > I followed the steps you mentioned and the logs work when using > script/server however no log entries are made when using Apache. > > Any suggestions on how I can see the logs when accessing the application > through Apache? > > Thanks > Frank > > ?ukasz Piestrzeniewicz <bragi.ragnarson@gmail.com> wrote: > On 02/02/06, softwareengineer 99 wrote: > > By "subversioned" I mean I moved the app to a SVN repository. Before the > > move the logs were being written to logs/development.log. Now nothing is > > being written as I move from page to page. > > > > I don''t want to commit my logs to the repository but would like to have > > access to them as I develop. > > > > How can I change where the logs are being written? > > You may safely leave logs where they are, just tell svn to ignore > them: from your application main directory do: > > # svn propset svn:ignore "*.log" log > # svn ci -m "Ignoring log files" log > > Now for the problem with empty log files. I have had the same problem > today and I fixed it just by deleting all contents of log directory. > On next run of ./script/server everything was ok. > > -- > ?ukasz Piestrzeniewicz > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > ________________________________ > Yahoo! Mail - Helps protect you from nasty viruses. > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >
Hi Zach, Thank you for your reply. Yes the user under which apache runs does have permisisons to the log directory. I have tried to see the httpd error logs but nothing shows up there either. I cannot make sense as to why the logs won''t show up when running under Apache. Thanks Frank Zach Wily <zach@zwily.com> wrote: Does the user apache runs as have permissions to write to the log directory? On 2/4/06, softwareengineer 99 wrote:> Thanks for your reply. > > I followed the steps you mentioned and the logs work when using > script/server however no log entries are made when using Apache. > > Any suggestions on how I can see the logs when accessing the application > through Apache? > > Thanks > Frank > > ?ukasz Piestrzeniewiczwrote:> On 02/02/06, softwareengineer 99 wrote: > > By "subversioned" I mean I moved the app to a SVN repository. Before the > > move the logs were being written to logs/development.log. Now nothing is > > being written as I move from page to page. > > > > I don''t want to commit my logs to the repository but would like to have > > access to them as I develop. > > > > How can I change where the logs are being written? > > You may safely leave logs where they are, just tell svn to ignore > them: from your application main directory do: > > # svn propset svn:ignore "*.log" log > # svn ci -m "Ignoring log files" log > > Now for the problem with empty log files. I have had the same problem > today and I fixed it just by deleting all contents of log directory. > On next run of ./script/server everything was ok. > > -- > ?ukasz Piestrzeniewicz > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > ________________________________ > Yahoo! Mail - Helps protect you from nasty viruses. > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >_______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails --------------------------------- Brings words and photos together (easily) with PhotoMail - it''s free and works with Yahoo! Mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060205/522bcda1/attachment.html
softwareengineer 99
2006-Feb-06 05:17 UTC
[Rails] No more logs after SVN? "log is not a working copy"
I tried the following but now I keep getting error when trying to commit that log is not a working copy. Please advise # svn commit # svn: ''/var/www/html/hosts/adoppt.com/docs/ror/log'' is not a working copy Thanks Frank ??ukasz Piestrzeniewicz <bragi.ragnarson@gmail.com> wrote:You may safely leave logs where they are, just tell svn to ignore them: from your application main directory do: # svn propset svn:ignore "*.log" log # svn ci -m "Ignoring log files" log --------------------------------- Relax. Yahoo! Mail virus scanning helps detect nasty viruses! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060206/8f98b4f7/attachment.html
Łukasz Piestrzeniewicz
2006-Feb-06 10:57 UTC
[Rails] No more logs after SVN? "log is not a working copy"
Hi, On 06/02/06, softwareengineer 99 <softwareengineer99@yahoo.com> wrote:> I tried the following but now I keep getting error when trying to commit > that log is not a working copy. Please advise > > # svn commit > # svn: ''/var/www/html/hosts/adoppt.com/docs/ror/log'' is > not a working copyIt seems that log directory was not added to subversion in the first place. In that case you have to add it first: $ svn add -N log Switch -N ensures that add operation is not recursive. Now you can set the svn:ignore property: $ svn propset svn:ignore "*.log" log $ svn ci -m "Ignoring log files" log It should work. -- ?ukasz Piestrzeniewicz
Harm
2006-Feb-07 17:56 UTC
[Rails] Re: No more logs after SVN? "log is not a working copy"
I do have the same problem. And tried the solution stated here but that did not work. Is there a solution? This is really silly. ?ukasz Piestrzeniewicz wrote:> Hi, > > On 06/02/06, softwareengineer 99 <softwareengineer99@yahoo.com> wrote: >> I tried the following but now I keep getting error when trying to commit >> that log is not a working copy. Please advise >> >> # svn commit >> # svn: ''/var/www/html/hosts/adoppt.com/docs/ror/log'' is >> not a working copy > > It seems that log directory was not added to subversion in the first > place. In that case you have to add it first: > > $ svn add -N log > > Switch -N ensures that add operation is not recursive. > Now you can set the svn:ignore property: > > $ svn propset svn:ignore "*.log" log > $ svn ci -m "Ignoring log files" log > > It should work.-- Posted via http://www.ruby-forum.com/.
Łukasz Piestrzeniewicz
2006-Feb-08 12:06 UTC
[Rails] Re: No more logs after SVN? "log is not a working copy"
On 07/02/06, Harm <harmaarts@gmail.com> wrote:> I do have the same problem. And tried the solution stated here but that > did not work. Is there a solution? This is really silly.Are you using development environment or other? Try setting RAILS_ENV environment variable to name of environment you are using: $ RAILS_ENV=development ./script/server -- ?ukasz Piestrzeniewicz
Guest
2006-Feb-08 14:00 UTC
[Rails] Re: Re: No more logs after SVN? "log is not a working copy"
Well the environment is just development. Nothing changed there. And the funny thing is that Webbrick neatly logs everything. Only Apache does not. And all the permissions are correct. The webserver can write in the relevant directory. Puzzlement reigns. ?ukasz Piestrzeniewicz wrote:> On 07/02/06, Harm <harmaarts@gmail.com> wrote: >> I do have the same problem. And tried the solution stated here but that >> did not work. Is there a solution? This is really silly. > > Are you using development environment or other? Try setting RAILS_ENV > environment variable to name of environment you are using: > > $ RAILS_ENV=development ./script/server-- Posted via http://www.ruby-forum.com/.
softwareengineer 99
2006-Feb-08 14:19 UTC
[Rails] Re: Re: No more logs after SVN? "log is not a working copy"
Exact situtation here with no solution. Frank Guest <harmaarts@gmail.com> wrote: Well the environment is just development. Nothing changed there. And the funny thing is that Webbrick neatly logs everything. Only Apache does not. And all the permissions are correct. The webserver can write in the relevant directory. Puzzlement reigns. --------------------------------- Relax. Yahoo! Mail virus scanning helps detect nasty viruses! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060208/44c75b9a/attachment.html
Well I think I figured it out. After the directive FastCgiServer in my apache conf files I put -initial-env RAILS_ENV=development. Then I removed the stale development.log file and restarted apache. This created a new log file! NOTE: if you remove the log file and do *not* restart apache, no new log file will appear. Rejoice! Guest wrote:> Well the environment is just development. Nothing changed there. And the > funny thing is that Webbrick neatly logs everything. Only Apache does > not. And all the permissions are correct. The webserver can write in the > relevant directory. > Puzzlement reigns. > > ?ukasz Piestrzeniewicz wrote: >> On 07/02/06, Harm <harmaarts@gmail.com> wrote: >>> I do have the same problem. And tried the solution stated here but that >>> did not work. Is there a solution? This is really silly. >> >> Are you using development environment or other? Try setting RAILS_ENV >> environment variable to name of environment you are using: >> >> $ RAILS_ENV=development ./script/server-- Posted via http://www.ruby-forum.com/.
softwareengineer 99
2006-Feb-08 14:39 UTC
[Rails] Re: Re: No more logs after SVN? "SOLUTION"
All I have in my apache conf files is: AddHandler fastcgi-script .fcgi AddHandler cgi-script .cgi and if I try to put -initial-env RAILS_ENV=development I get an error "Invalid command ''-initial-env'', perhaps mis-spelled or defined by a module not included in the server configuration" I am using Apache 2, if that helps? Thanks Frank Harm <harmaarts@gmail.com> wrote: Well I think I figured it out. After the directive FastCgiServer in my apache conf files I put -initial-env RAILS_ENV=development. Then I removed the stale development.log file and restarted apache. This created a new log file! NOTE: if you remove the log file and do *not* restart apache, no new log file will appear. Rejoice! Guest wrote:> Well the environment is just development. Nothing changed there. And the > funny thing is that Webbrick neatly logs everything. Only Apache does > not. And all the permissions are correct. The webserver can write in the > relevant directory. > Puzzlement reigns. > > ??ukasz Piestrzeniewicz wrote: >> On 07/02/06, Harm wrote: >>> I do have the same problem. And tried the solution stated here but that >>> did not work. Is there a solution? This is really silly. >> >> Are you using development environment or other? Try setting RAILS_ENV >> environment variable to name of environment you are using: >> >> $ RAILS_ENV=development ./script/server-- Posted via http://www.ruby-forum.com/. _______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails --------------------------------- Relax. Yahoo! Mail virus scanning helps detect nasty viruses! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060208/51719ed9/attachment.html
Hi ??ukasz, Thank you very much for your tips/assistance. I tried the following and restarted Apache and it works! ENV[''RAILS_ENV''] ||= ''development'' Thanks Frank Guest <harmaarts@gmail.com> wrote: Well the environment is just development. Nothing changed there. And the funny thing is that Webbrick neatly logs everything. Only Apache does not. And all the permissions are correct. The webserver can write in the relevant directory. Puzzlement reigns. ??ukasz Piestrzeniewicz wrote:> On 07/02/06, Harm wrote: >> I do have the same problem. And tried the solution stated here but that >> did not work. Is there a solution? This is really silly. > > Are you using development environment or other? Try setting RAILS_ENV > environment variable to name of environment you are using: > > $ RAILS_ENV=development ./script/server-- Posted via http://www.ruby-forum.com/. _______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails --------------------------------- Relax. Yahoo! Mail virus scanning helps detect nasty viruses! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060208/e1a27a10/attachment.html
Just out of curiousity, where did you put ENV[''RAILS_ENV''] ||= ''development'' ? softwareengineer 99 wrote:> Hi ??ukasz, > > Thank you very much for your tips/assistance. > > I tried the following and restarted Apache and it works! > > ENV[''RAILS_ENV''] ||= ''development'' > > Thanks > Frank-- Posted via http://www.ruby-forum.com/.
softwareengineer 99
2006-Feb-08 19:36 UTC
[Rails] Re: Re: Re: No more logs after SVN? Solved
I put it in config/environment.rb Thanks Frank harm <harmaarts@gmail.com> wrote: Just out of curiousity, where did you put ENV[''RAILS_ENV''] ||= ''development'' ? --------------------------------- Brings words and photos together (easily) with PhotoMail - it''s free and works with Yahoo! Mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060208/0b0a5074/attachment.html