Switching to production mode

16 views
Skip to first unread message

hr_cuser

unread,
Jan 4, 2010, 5:16:04 AM1/4/10
to Coupa Express
hello,
got a slight problem with coupa express and production mode.
Development mode runs fine, so I created an additional db for
production mode (coupa_production), added the neccessary entries in
the environment.rb file, populated the db with demonstration data by
adding RAILS_ENV=production to the rake commands from the installation
guide pdf and thats it.
However, even after changing the "development" flag to "production" in
the script/backgroundrb/start file it still defaults to the
development db (any new item I add is written to the standard "coupa"
sql db instead of "coupa_production").

Can anyone give me a short guide on how to set this thing up in
production mode?

Also, I have another problem: I wanted to customize the look&feel of
the interface. I succeeded in exchanging the graphics with different
ones, however on restart of the server they were overwritten with the
original files - from where I don't know.
My ruby/rails experience is almost non-existant, I tried looking on
the HD from where the files could've been written, but to no avail. As
far as I could gather, they are restored from some kind of cache, so
that the development environment resembles a sandbox, giving you the
ability to revert to its original state by resetting the server.
However, what shall I do if I do not want this to happen?

Any help would be greatly appreciated.

Regards,
hr

hr_cuser

unread,
Jan 5, 2010, 8:25:04 AM1/5/10
to Coupa Express
OK, got production mode to work by setting an environment variable for
rails (RAILS_ENV, value "production" in the windows environment
variable settings).
I can now edit my pictures and they are still there after editing,
same goes for my rhtml files. Great.
However I've now run into the next problem: The app won't accept any
other rss feed. The server on which it runs can access and display the
feed, I tried rss 1.0 and 2.0 feeds and selfmade ones, to no avail.
Is the feed url hardcoded somewhere else? Couldn't find it anywhere.

noah

unread,
Jan 5, 2010, 3:46:49 PM1/5/10
to Coupa Express
in the application's admin menu, go to RSS feed. i just tried a feed
like http://rss.cnn.com/rss/cnn_health.rss and it worked fine.

hr_cuser

unread,
Jan 7, 2010, 7:06:30 AM1/7/10
to Coupa Express
Hmmm, strange. Thats the function I used, but still not a single feed
worked (though they were all RSS1.0 or 2.0 compliant). This one
doesn't work either, it seems that I have some connection issues from
the server itself. The coupa express demo feed probably only shows pre-
cached stuff from the demo installation, however I am able to access
all feeds via browser from the Server CE is running on.
Can you specifiy a proxy somewhere inside coupa for the feeds?
Atleast outgoing mails worked without a problem, I just wish I could
store them somewhere - would like to add a function to re-send
confirmation and order mails in case they got lost. Will have to find
out how/from where the PDFs are generated next and so forth and so on.
It's strange, but somehow the more you understand about the structure
of the software the more fun it becomes to work with it :)

On 5 Jan., 21:46, noah <noah.eis...@gmail.com> wrote:
> in the application's admin menu, go to RSS feed.  i just tried a feed

> likehttp://rss.cnn.com/rss/cnn_health.rssand it worked fine.

Reply all
Reply to author
Forward
0 new messages