Saving Code
Saving your application in a repository (also called publishing) is
the preferred way to store your code. WebVelocity does not normally
save source code in files (though there is a way).
For the most part, you know when you need to save, or publish, your
code, because you’ve been editing it. As a visual reminder, the
Changes link on the WebVelocity Launcher page appears red when changes
have been made but not yet published.
To publish your code:
1. Go to the WebVelocity Application Editor.
2. Select Publish from the Actions menu.
In the Publish dialog, set the version number (1.0 is the default for
a first publish), and enter a brief comment to describe this version.
You can change the blessing level, though the default Development is
often used for code that's in-progress. When all options gave been
set, click OK.
The idea in WebVelocity is that rather than saving your entire image as
a snapshot, and rather than saving your application code in files
(neither of which are under any form of source code control), you save
your code by publishing to the code repository. By default, WebVelocity
has a private, local repository that you can use, so there's no
'commitment' involved. You are not making your work public. The work
"publish" is a bit misleading in this context. It is meant to suggest
that regardless of whether you are saving a few changes in your local
repository, or making your entire application available in a public one,
the steps are pretty much the same.
The error message (which should probably read "There is no connection to
a database") suggests that WebVelocity is not finding the database. Have
you changed your connection profile? Also, what machine/OS/version/etc.
are you using?
M. Roberts
Cincom Systems, Inc.
M. Downing Roberts wrote:
>
> The idea in WebVelocity is that rather than saving your entire image as
> a snapshot, and rather than saving your application code in files
> (neither of which are under any form of source code control), you save
> your code by publishing to the code repository. By default, WebVelocity
> has a private, local repository that you can use, so there's no
> 'commitment' involved. You are not making your work public. The word
> "publish" is a bit misleading in this context. It is meant to suggest
> that regardless of whether you are saving a few changes in your local
> repository, or making your entire application available in a public one,
> the steps are pretty much the same.
>
> The error message (which should probably read "There is no connection to
> a database") suggests that WebVelocity is not finding the database. Have
> you changed your connection profile? Also, what machine/OS/version/etc.
> are you using?
>
Hi Robert, where can I find more info about this whole save, publish,
repository and database concept?
--
View this message in context: http://n4.nabble.com/Saving-Code-not-publishing-How-tp1574555p1574673.html
Sent from the WebVelocity mailing list archive at Nabble.com.
> where can I find more info about this whole save, publish, repository and database concept?
>
The WebVelocity documentation itself covers this. Have a look at the
topic: Documentation > Application Development > Managing Source Code
If any particular point seems unclear, just let us know and we can amend
the documentation.
Thanks,
I don't have my original text regarding 'Saving Code' where I provided
machine info etc that came in via AOL - sorry - I won't use that
route in the future. To me it isn't so much a matter of where I am in
the UI, because I'll be wherever you want me to be. I'm just trying
'save' my code (methods, classes, etc), but get the 'There is no
connection to a database' error and the suggestions I've received so
far don't seem to foot to something I can do specifically. I've
createda PostgreSQL database, complete with data. Supposedly my
database configuration works, the 'test login' works. Then I generated
(map) just a few classes. I want to save this, and future work too. My
exact steps are: 'Open Browser', click on my loaded application
'ShawInvestmentCompany', select Actions\Publish, click OK. Form this I
receive 'There is no connection a database'.
This is really stressing me out. I'm a long time Smalltalker, but I
can't even get to the Smalltalk part of what I'd like to do. I
thought Webvelocity would be the better route, but I'm wondering if
just native Squeak\Seaside would be easier???
> --
> You received this message because you are subscribed to the Google Groups "WebVelocity" group.
> To post to this group, send email to webve...@googlegroups.com.
> To unsubscribe from this group, send email to webvelocity...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/webvelocity?hl=en.
>
Maybe you've already checked this over, but just to make sure...
When you open the "Repositories" menu on the main page, what's selected?
"Personal"? When you select "edit" for the currently selected
repository, what are the connection settings in the "Edit Repository"
dialog?
In WebVelocity 1.0, the code for your application and its data are
stored in distinct databases. The application code that you publish goes
into a repository, and this is set using the "Repositories" menu on the
main page. By default, WebVelocity uses a SQLite database called
"Personal", and this should just be configured and ready to go when you
launch. That is, SQLite is bundled with WebVelocity and no manual
configuration is necessary, unless you want to save your code in a
different repository. If you changed this setting to a different
database, or the configuration is messed up somehow, then you may need
to change it back. You can also create new code repositories using the
"New" menu.
Your application data, on the other hand, goes into a separate database
that is configured from the "Database" menu in the Application Editor.
It sounds like you have that configured correctly for your application,
but perhaps somewhere along the line the repository that you have
selected for code storage got confused somehow.
So, I'd say double check that first.
Regards,
I'll also mention that if you just want to save out parcels, that's
done by the "Deploy" option. So, the normal method for keeping track
of your code is to "publish" it in your own local sqlite database.
It's not really publishing in the sense that anyone else can see it,
that's just the terminology for committing to the source control
system. For deploying it, rather than save the image, you can save out
parcels which are then loaded automatically into the runtime image
when it starts up.
The only sqlite dll I could find was on my backup drive, so I copied
that file (sqlite3.dll 254 KB dated May 14, 2009, 6:04:00 AM )
to C:\Program Files (x86)\Common Files. I added this to the path -
still no luck. Suggestions?
> > For more options, visit this group athttp://groups.google.com/group/webvelocity?hl=en.- Hide quoted text -
>
> - Show quoted text -
The only sqlite dll I could find was on my backup drive, so I copied
that file (sqlite3.dll 254 KB dated May 14, 2009, 6:04:00 AM )
to C:\Program Files (x86)\Common Files. I added this to the path -
still no luck. Suggestions?
> >>> For more options, visit this group athttp://groups.google.com/group/webvelocity?hl=en.-Hide quoted text -
http://www.cincomsmalltalk.com/userblogs/cincom/smalltalk.ssp
M
> > webvelocity...@googlegroups.com<webvelocity%2Bunsubscribe@googlegroups.com>
> > .
> > > >>> For more options, visit this group athttp://
> > groups.google.com/group/webvelocity?hl=en.-Hide quoted text -
>
> > > >> - Show quoted text -
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups "WebVelocity" group.
> > > > To post to this group, send email to webve...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > webvelocity...@googlegroups.com<webvelocity%2Bunsubscribe@googlegroups.com>
> > .
> > > > For more options, visit this group athttp://
> > groups.google.com/group/webvelocity?hl=en.- Hide quoted text -
>
> > > - Show quoted text -
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "WebVelocity" group.
> > To post to this group, send email to webve...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > webvelocity...@googlegroups.com<webvelocity%2Bunsubscribe@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/webvelocity?hl=en.
>
> --http://jmck.seasidehosting.st- Hide quoted text -
I moved sqlite3.dll to the C:\Windows directory. Same results. Where
does sqlite come from anyway? Is it available by default or did
installing WebVelocity also install sqlite? If so, maybe I need ot
reinstall WebVelocity.
To unsubscribe from this group, send email to webvelocity...@googlegroups.com.