On Jueves 07 Octubre 2010 07:00:02 Nandan Bagchee escribió:
> I've experimented with images mostly because they load really fast. But in
> my case the store is loaded only when weblocks is started (I saved the image
> *without* starting weblocks). The big caveat is that I am on weblocks 0.8.2
> or so -- I will have to experiment with the latest weblocks before I can say
> definitively that the same procedure works.
> 
We do the same, weblocks is started only when the store is defined (after 
restarting the image).

> Can you post exactly where your defstore form occurs? And the toplevel that
> you run when the core is loaded?
> 

(defun resume-from-save-lisp-and-die ()
  (initialize-environment)
  (start-skynet.web))

(defun initialize-environment (&key developmentp)
  (skynet.consola::load-configuration)
  (if (not developmentp)
      (progn
        (disable-sql-log)
        (setf weblocks:*catch-errors-p* t))
      (progn
        (enable-sql-log)
        (setf weblocks:*catch-errors-p* nil)
        (when (probe-file *local-config-file*)
          (load *local-config-file*))))
  (defstore *perec-store* :perec
    `(:host ,skynet.bd:*skynet-database-host*
            :database ,skynet.bd:*skynet-database-name*
            :user-name ,skynet.bd:*skynet-database-user*
            :password ,skynet.bd:*skynet-database-password*)))

(defun start-skynet.web (&rest args)
  "Starts the application by calling `start-weblocks' with appropriate
  arguments."
  (apply #'start-weblocks args)
  (setf *database* weblocks:*default-store*)
  (start-webapp 'skynet.web-root :public-files-path *public-files-path*))

> Perhaps try saving the image without having started weblocks?
> 
That's what we have done :)

Greets.
Rafael J. Alcántara Pérez.
--

-- 
You received this message because you are subscribed to the Google Groups 
"weblocks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/weblocks?hl=en.

Reply via email to