Reputation: 97
I successfully installed Fedena on Windows using this tutorial:
http://en.wikibooks.org/wiki/Fedena/Installation
The problem is that each time I start windows, I need to run the command ruby script/server so that I can access the project locally. I tried making Fedena a Windows Service that starts automatically by following the steps mentioned in the tutorial, but it seems that it didn't work.
Making a Windows Service If you want to run Fedena as a Windows Service (which automatically starts), do the following commands: Open the Ruby Command prompt and go to your Fedena Installation director //do they mean by this C:/Fedena?
Install a Gem:
gem install win32-service
Install a Gem:
gem install mongrel_service
Run the command:
mongrel_rails service::install -N Fedena -c C:\FEDENA -p 3001 -e production
(Replace C:\FEDENA with whatever your Fedena installation Directory is.) You may also wish to change the port from 3001 to 80 so when entering the address from other computers, it is not required that you enter a port. Go to windows search at the start menu, type: services.msc Look for service named 'Fedena' and set it to automatic Restart your computer and see if the fedena start automatically. Always make sure that your server is running.
Any ideas what could be the problem?
Upvotes: 0
Views: 422
Reputation: 107
Right after Fedena is configured, the start of the application is via console which should stay open for all the times if we want the application to be up and running. But quite often will get closed (human error, server down etc) and the application will go down. The same applies if the server is rebooted/bounced and all over again.
So here is the solution if you don't want to go over this hassle:
cd \ cd Fedena mongrel_rails start -e production
Note: If you want to start it as development mode remove -e production from the last line
http://example.com:3000
and Fedena should be upIf you need to bounce the application just restart the Fedena Service.
That is,
Thank you
Upvotes: 1