|
View:
New views
11 Messages
—
Rating Filter:
Alert me
|
|
|
Location of Web Folder on a Mac Server ApplicationHi All,
I have a built Mac Server application (4D 2004.7r?). I was wondering if there was a way to move the Web folder out of the Server Application. The issue came up today when I uploaded a new server application and I forgot to move the Web Folder from the old application to the new one. I lost about 9000 pdf files. Fortunately, the backups worked like they should and I was able to recover the files. What would be best would be to simply not have the Web Folder inside the 4D Server.app package. Any ideas? (I try using an alias and that did not work.) TIA, dave -- David Nasralla Clean Air Engineering ********************************************************************** 4D Server v11 SQL has arrived! Buy it NOW at http://store.4ddepot.com 4th Dimension Internet Users Group (4D iNUG) FAQ: http://www.4d.com/support/faqnug.html Archive: http://dir.gmane.org/gmane.comp.lang.inug-4d.tech Unsub: mailto:4D_Tech-Unsubscribe@... Post: mailto:4d_tech@... Options: https://lists.4d.com/mailman/listinfo/4d_tech ********************************************************************** |
|
|
Re: Location of Web Folder on a Mac Server ApplicationDid you try changing the web root folder in preferences? either
statically (4D Preferences) or via Set Database parameters. remember that if you do it programmatically you should startup the app with the web server down, set the web root folder and then start the web server. hth julio On Jul 9, 2008, at 12:05 PM, David Nasralla wrote: > Hi All, > > I have a built Mac Server application (4D 2004.7r?). I was wondering > if there was a way to move the Web folder out of the Server > Application. > > The issue came up today when I uploaded a new server application and I > forgot to move the Web Folder from the old application to the new one. > I lost about 9000 pdf files. Fortunately, the backups worked like > they should and I was able to recover the files. > > What would be best would be to simply not have the Web Folder inside > the 4D Server.app package. Any ideas? (I try using an alias and that > did not work.) > > TIA, > > dave > ********************************************************************** 4D Server v11 SQL has arrived! Buy it NOW at http://store.4ddepot.com 4th Dimension Internet Users Group (4D iNUG) FAQ: http://www.4d.com/support/faqnug.html Archive: http://dir.gmane.org/gmane.comp.lang.inug-4d.tech Unsub: mailto:4D_Tech-Unsubscribe@... Post: mailto:4d_tech@... Options: https://lists.4d.com/mailman/listinfo/4d_tech ********************************************************************** |
|
|
Re: Location of Web Folder on a Mac Server ApplicationHi Julio,
My problem is that the web folder is in the Server Application. From the preferences it seems like you must start your directory position from next to the .4DC file, and then you can only move down further into the application package. It seems I can't go up the directory tree to get out of the package. I'm thinking it is simply a design limitation - which means if you replace the Application package, you lose all of your web pages (if you are not careful). d On Wed, Jul 9, 2008 at 2:42 PM, Julio Carneiro <jjfourd@...> wrote: > Did you try changing the web root folder in preferences? either statically > (4D Preferences) or via Set Database parameters. > remember that if you do it programmatically you should startup the app with > the web server down, set the web root folder and then start the web server. > > hth > julio > > On Jul 9, 2008, at 12:05 PM, David Nasralla wrote: > >> Hi All, >> >> I have a built Mac Server application (4D 2004.7r?). I was wondering >> if there was a way to move the Web folder out of the Server >> Application. >> >> The issue came up today when I uploaded a new server application and I >> forgot to move the Web Folder from the old application to the new one. >> I lost about 9000 pdf files. Fortunately, the backups worked like >> they should and I was able to recover the files. >> >> What would be best would be to simply not have the Web Folder inside >> the 4D Server.app package. Any ideas? (I try using an alias and that >> did not work.) >> >> TIA, >> >> dave >> > > ********************************************************************** > 4D Server v11 SQL has arrived! > Buy it NOW at http://store.4ddepot.com > > 4th Dimension Internet Users Group (4D iNUG) > FAQ: http://www.4d.com/support/faqnug.html > Archive: http://dir.gmane.org/gmane.comp.lang.inug-4d.tech > Unsub: mailto:4D_Tech-Unsubscribe@... > Post: mailto:4d_tech@... > Options: https://lists.4d.com/mailman/listinfo/4d_tech > ********************************************************************** > -- David Nasralla Clean Air Engineering ********************************************************************** 4D Server v11 SQL has arrived! Buy it NOW at http://store.4ddepot.com 4th Dimension Internet Users Group (4D iNUG) FAQ: http://www.4d.com/support/faqnug.html Archive: http://dir.gmane.org/gmane.comp.lang.inug-4d.tech Unsub: mailto:4D_Tech-Unsubscribe@... Post: mailto:4d_tech@... Options: https://lists.4d.com/mailman/listinfo/4d_tech ********************************************************************** |
|
|
Re: Location of Web Folder on a Mac Server ApplicationI ran into this just last week. There are several things you can try:
--I think, but I'm not sure, that the v 2004 will accept an absolute full path to the web root folder. --There is, supposedly, syntax for "going up" through the folder levels. --You can use a bogus path in the prefs altogether then trap the bad request OWC and, from there, use the real path. This method also gives you the option of creating a user interface using select folder () so the user can put the web root pretty much anywhere. I asked TS and the nug last week about the generic syntax for going up multiple levels and I've gotten no response. I was quite surprised there is nothing in the archives about this. Since the built apps took on the "package" format, keeping the web root folder at the same level as the structure causes the developer and the user a myriad of problems. Bill Note to Julio: I thought I checked last week and didn't see an item for setting the web root folder via set database parameter. In any case, the docs claim that if you do it from the prefs form directly, 4D will immediately recognize it. I'm not sure about that and, again, no definitive reply from TS... On Jul 9, 2008, at 3:50 PM, David Nasralla wrote: > Hi Julio, > > My problem is that the web folder is in the Server Application. From > the preferences it seems like you must start your directory position > from next to the .4DC file, and then you can only move down further > into the application package. It seems I can't go up the directory > tree to get out of the package. I'm thinking it is simply a design > limitation - which means if you replace the Application package, you > lose all of your web pages (if you are not careful). > > d ********************************************************************** 4D Server v11 SQL has arrived! Buy it NOW at http://store.4ddepot.com 4th Dimension Internet Users Group (4D iNUG) FAQ: http://www.4d.com/support/faqnug.html Archive: http://dir.gmane.org/gmane.comp.lang.inug-4d.tech Unsub: mailto:4D_Tech-Unsubscribe@... Post: mailto:4d_tech@... Options: https://lists.4d.com/mailman/listinfo/4d_tech ********************************************************************** |
|
|
Re: Location of Web Folder on a Mac Server ApplicationThanks Bill,
Bill Weale wrote: > --I think, but I'm not sure, that the v 2004 will accept an absolute full > path to the web root folder. A quick test shows you are correct. The odd thing is, it worked with the Macintosh colon syntax. I moved the index.html file to root level of my drive and entered "Macintosh HD:" as the Web Folder location (no quotes), and the index file showed up when I surfed. (FYI - I did change the contents of the index file to make sure I was getting the file I had in fact moved.) I do use bogus file paths, so I will need to change some internal code, but it seems to be the direction to go. Thanks for you help! dave -- David Nasralla Clean Air Engineering ********************************************************************** 4D Server v11 SQL has arrived! Buy it NOW at http://store.4ddepot.com 4th Dimension Internet Users Group (4D iNUG) FAQ: http://www.4d.com/support/faqnug.html Archive: http://dir.gmane.org/gmane.comp.lang.inug-4d.tech Unsub: mailto:4D_Tech-Unsubscribe@... Post: mailto:4d_tech@... Options: https://lists.4d.com/mailman/listinfo/4d_tech ********************************************************************** |
|
|
Re: Location of Web Folder on a Mac Server ApplicationSorry, I mentioned the wrong 4D statement. To set the HTML root you
use: SET HTML ROOT, of course :-) And 4D's documentation states clearly that you can pass a full path as the parameter (http://www.4d.com/docs/CMU/CMU00634.HTM) So you can set your webfolder anywhere, does not have to be inside the package. You should do that on your server startup: set the html root and start the web server. Also, if you look at 4D's documentation here : http://www.4d.com/docs/CMU/CMU02056.HTM You'll see that you can set the 'default html root' via 4D preferences outside the package too, using "../../../WebFolder" ( I hope I counted the # of "ups" correctly). hth julio On Jul 9, 2008, at 5:28 PM, Bill Weale wrote: > I ran into this just last week. There are several things you can try: > > --I think, but I'm not sure, that the v 2004 will accept an absolute > full path to the web root folder. > > --There is, supposedly, syntax for "going up" through the folder > levels. > > --You can use a bogus path in the prefs altogether then trap the bad > request OWC and, from there, use the real path. This method also > gives you the option of creating a user interface using select > folder() so the user can put the web root pretty much anywhere. > > > I asked TS and the nug last week about the generic syntax for going > up multiple levels and I've gotten no response. > > I was quite surprised there is nothing in the archives about this. > Since the built apps took on the "package" format, keeping the web > root folder at the same level as the structure causes the developer > and the user a myriad of problems. > > Bill > > Note to Julio: > > I thought I checked last week and didn't see an item for setting the > web root folder via set database parameter. In any case, the docs > claim that if you do it from the prefs form directly, 4D will > immediately recognize it. I'm not sure about that and, again, no > definitive reply from TS... > > > > > On Jul 9, 2008, at 3:50 PM, David Nasralla wrote: > >> Hi Julio, >> >> My problem is that the web folder is in the Server Application. From >> the preferences it seems like you must start your directory position >> from next to the .4DC file, and then you can only move down further >> into the application package. It seems I can't go up the directory >> tree to get out of the package. I'm thinking it is simply a design >> limitation - which means if you replace the Application package, you >> lose all of your web pages (if you are not careful). >> >> d > > ********************************************************************** > 4D Server v11 SQL has arrived! > Buy it NOW at http://store.4ddepot.com > > 4th Dimension Internet Users Group (4D iNUG) > FAQ: http://www.4d.com/support/faqnug.html > Archive: http://dir.gmane.org/gmane.comp.lang.inug-4d.tech > Unsub: mailto:4D_Tech-Unsubscribe@... > Post: mailto:4d_tech@... > Options: https://lists.4d.com/mailman/listinfo/4d_tech > ********************************************************************** ********************************************************************** 4D Server v11 SQL has arrived! Buy it NOW at http://store.4ddepot.com 4th Dimension Internet Users Group (4D iNUG) FAQ: http://www.4d.com/support/faqnug.html Archive: http://dir.gmane.org/gmane.comp.lang.inug-4d.tech Unsub: mailto:4D_Tech-Unsubscribe@... Post: mailto:4d_tech@... Options: https://lists.4d.com/mailman/listinfo/4d_tech ********************************************************************** |
|
|
Re: Location of Web Folder on a Mac Server ApplicationI think that needs to be called for every new process...
--Bill On Jul 9, 2008, at 5:33 PM, Julio Carneiro wrote: > Sorry, I mentioned the wrong 4D statement. To set the HTML root you > use: SET HTML ROOT, of course :-) ********************************************************************** 4D Server v11 SQL has arrived! Buy it NOW at http://store.4ddepot.com 4th Dimension Internet Users Group (4D iNUG) FAQ: http://www.4d.com/support/faqnug.html Archive: http://dir.gmane.org/gmane.comp.lang.inug-4d.tech Unsub: mailto:4D_Tech-Unsubscribe@... Post: mailto:4d_tech@... Options: https://lists.4d.com/mailman/listinfo/4d_tech ********************************************************************** |
|
|
Re: Location of Web Folder on a Mac Server Applicationnope, that is a global value. It replaces the 'default html root' set
via preferences. read the documentation... On Jul 9, 2008, at 6:38 PM, Bill Weale wrote: > I think that needs to be called for every new process... > > --Bill > > > On Jul 9, 2008, at 5:33 PM, Julio Carneiro wrote: > >> Sorry, I mentioned the wrong 4D statement. To set the HTML root you >> use: SET HTML ROOT, of course :-) > 4D Server v11 SQL has arrived! Buy it NOW at http://store.4ddepot.com 4th Dimension Internet Users Group (4D iNUG) FAQ: http://www.4d.com/support/faqnug.html Archive: http://dir.gmane.org/gmane.comp.lang.inug-4d.tech Unsub: mailto:4D_Tech-Unsubscribe@... Post: mailto:4d_tech@... Options: https://lists.4d.com/mailman/listinfo/4d_tech ********************************************************************** |
|
|
Re: Location of Web Folder on a Mac Server ApplicationHi Julio,
Julio Carneiro <jjfourd@...> wrote: > And 4D's documentation states clearly that you can pass a full path as the > parameter (http://www.4d.com/docs/CMU/CMU00634.HTM) Thanks. I did not see that. > You'll see that you can set the 'default html root' via 4D preferences > outside the package too, using "../../../WebFolder" ( I hope I counted the # > of "ups" correctly). I tried this method, but did not get it to work (albeit, I did not try hard...) I just tried going up one level. Thanks for all your help. dave -- David Nasralla Clean Air Engineering ********************************************************************** 4D Server v11 SQL has arrived! Buy it NOW at http://store.4ddepot.com 4th Dimension Internet Users Group (4D iNUG) FAQ: http://www.4d.com/support/faqnug.html Archive: http://dir.gmane.org/gmane.comp.lang.inug-4d.tech Unsub: mailto:4D_Tech-Unsubscribe@... Post: mailto:4d_tech@... Options: https://lists.4d.com/mailman/listinfo/4d_tech ********************************************************************** |
|
|
Re: Location of Web Folder on a Mac Server ApplicationHi all,
Just wanted to do a quick followup on how to move the web folder outside of a 4D Mac Server Application for 4D 2004.7. The Command SET HTML ROOT changed in v11. In 4D 2004 (my version) SET HTML ROOT only works in contextual mode. (The docs for vs 2004 state this - the online docs show how it behaves in v11). The Language Reference for 2004.6 makes no reference to being able to use absolute file paths in the Preference like the v11 docs mention. But, using an absolute reference in vs 2004.7 DID work for me. What ended up working best for me is to use three 'up' commands in the 4D Preferences like Julio said. "../../../WebFolder" Thanks to all that helped... dave On Wed, Jul 9, 2008 at 11:13 PM, David Nasralla <dnasralla@...> wrote: > Hi Julio, > > Julio Carneiro <jjfourd@...> wrote: > >> And 4D's documentation states clearly that you can pass a full path as the >> parameter (http://www.4d.com/docs/CMU/CMU00634.HTM) > > Thanks. I did not see that. > >> You'll see that you can set the 'default html root' via 4D preferences >> outside the package too, using "../../../WebFolder" ( I hope I counted the # >> of "ups" correctly). > > I tried this method, but did not get it to work (albeit, I did not try > hard...) I just tried going up one level. > Thanks for all your help. > > dave > > -- > David Nasralla > Clean Air Engineering > -- David Nasralla Clean Air Engineering ********************************************************************** 4D Server v11 SQL has arrived! Buy it NOW at http://store.4ddepot.com 4th Dimension Internet Users Group (4D iNUG) FAQ: http://www.4d.com/support/faqnug.html Archive: http://dir.gmane.org/gmane.comp.lang.inug-4d.tech Unsub: mailto:4D_Tech-Unsubscribe@... Post: mailto:4d_tech@... Options: https://lists.4d.com/mailman/listinfo/4d_tech ********************************************************************** |
|
|
Re: Location of Web Folder on a Mac Server ApplicationJust a quick tip if all you need is to be able to update the WebFolder
that lives inside a 4D Server Mac app: - right-click the 4D Server Mac app and select Show Package Contents - open Contents, Server Database - option-command-drag Webfolder to say your desktop - boom , there you have an alias into the buried WebFolder Now you can view/update files inside that WebFolder. Even better, the alias will show up thru network access as well. That means you can remotely update a Mac server webfolder w/o the need to have direct access to the server box (tb2, remote access, screen sharing,...). hth julio ps: you can do the same with the Extras folder. That allows you to replace files in Extras remotely as well. ps2: you could do the same for the Server Database and be able to update the .4dc/.rsr but that is not really useful as you'd need to restart 4D Server anyway and that means access to the box directly or via screen sharing. On Jul 29, 2008, at 12:20 PM, David Nasralla wrote: > Hi all, > > Just wanted to do a quick followup on how to move the web folder > outside of a 4D Mac Server Application for 4D 2004.7. > > The Command SET HTML ROOT changed in v11. In 4D 2004 (my version) SET > HTML ROOT only works in contextual mode. (The docs for vs 2004 state > this - the online docs show how it behaves in v11). > > The Language Reference for 2004.6 makes no reference to being able to > use absolute file paths in the Preference like the v11 docs mention. > But, using an absolute reference in vs 2004.7 DID work for me. > > What ended up working best for me is to use three 'up' commands in the > 4D Preferences like Julio said. > "../../../WebFolder" > > Thanks to all that helped... > > dave > > On Wed, Jul 9, 2008 at 11:13 PM, David Nasralla > <dnasralla@...> wrote: >> Hi Julio, >> >> Julio Carneiro <jjfourd@...> wrote: >> >>> And 4D's documentation states clearly that you can pass a full >>> path as the >>> parameter (http://www.4d.com/docs/CMU/CMU00634.HTM) >> >> Thanks. I did not see that. >> >>> You'll see that you can set the 'default html root' via 4D >>> preferences >>> outside the package too, using "../../../WebFolder" ( I hope I >>> counted the # >>> of "ups" correctly). >> >> I tried this method, but did not get it to work (albeit, I did not >> try >> hard...) I just tried going up one level. >> Thanks for all your help. >> >> dave >> >> -- >> David Nasralla >> Clean Air Engineering >> > > > > -- > David Nasralla > Clean Air Engineering > ********************************************************************** > 4D Server v11 SQL has arrived! > Buy it NOW at http://store.4ddepot.com > > 4th Dimension Internet Users Group (4D iNUG) > FAQ: http://www.4d.com/support/faqnug.html > Archive: http://dir.gmane.org/gmane.comp.lang.inug-4d.tech > Unsub: mailto:4D_Tech-Unsubscribe@... > Post: mailto:4d_tech@... > Options: https://lists.4d.com/mailman/listinfo/4d_tech > ********************************************************************** ********************************************************************** 4D Server v11 SQL has arrived! Buy it NOW at http://store.4ddepot.com 4th Dimension Internet Users Group (4D iNUG) FAQ: http://www.4d.com/support/faqnug.html Archive: http://dir.gmane.org/gmane.comp.lang.inug-4d.tech Unsub: mailto:4D_Tech-Unsubscribe@... Post: mailto:4d_tech@... Options: https://lists.4d.com/mailman/listinfo/4d_tech ********************************************************************** |
| Free Forum Powered by Nabble | Forum Help |