• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
LiveCode Server information
#3
(06-12-2019, 06:14 PM)mark.h Wrote: You can set this up on a hosted provider (either HostM or onRev ) by:
1.) Once you've created an account with HostM or onRev, you will need to get them to put you on the commercial version of LC Server (you should be able to email their support team to do this).
2.) You will need them to add the TSNET and MergJSON externals. I think their support teams can help you with this as well, or perhaps there is a folder in your installation where you can drop externals in.
3.) Copy your CanelaDB folder (exported from LCM), and paste it into your Public_HTML directory (Whatever would correspond to "/" in your website).
4.) Create the "cdb.lc" file from the sample code above, making sure to replace the authkey with your authkey (found in the LCM initialization script). You can save this into your Public_HTML directory as well.
5.) In any of your .lc scripts that require database access, you should 
Code:
<?lc require "cdb.lc" ?>

 at the top of the file.
6.) You can check to see this is working with the following script:
Code:
<?lc
require "cdb.lc"
?>
<html>
<head>Testing CanelaDB</head>
<body>
<?lc
put cdb_tableNames()
?>
</body>
</html>

Hello @jason, trust you guys at Canela are staying safe and doing good.

I have recently revisited getting LiveCloud to work on the Web -- via LiveCode Server -- hence resuscitating this thread. I have followed the steps provided here, and the old one you provided to me a while ago when we touched base on this, but I'm still not able to get LiveCloud to instantiate properly. I've tried everything that I can think of from the LiveCode angle, as well as LiveCloud but this is still one tough nut to crack Smile Dodgy No matter, I am now very determined to get this working because of the value it offers compared to the other NoSQLs I've tried in recent time.

My very recent work, using hostM and running a commercially licensed copy of LiveCode Server, I continually get the following error;


Code:
starting loading CanelaDB...

stack "/home/ua830318/public_html/edu.ezektec.com/EzekTecEdu/v1/CanelaDB/libraries/CDB_Starter.lib"
 row 14725, col 1: Handler: can't find handler (revDeleteFolder)
 row 14725, col 1: switch: error in statement
 row 14721, col 1: Handler: error in statement (csi_deleteFolder)
 row 14263, col 61: Function: error in function handler (csi_deleteFolder)
 row 14263, col 61: get: error in expression
 row 14263, col 61: if-then: error in statement
 row 14263, col 61: repeat: error in statement
 row 14263, col 61: if-then: error in statement
 row 14200, col 1: Handler: error in statement (csi_saveRAMToDisk)
 row 4087, col 43: Handler: can't find handler (csi_saveRAMToDisk)
 row 4087, col 43: if-then: error in statement
 row 4087, col 43: repeat: error in statement
 row 4065, col 1: Handler: error in statement (cdb_batchDeleteLocal)
 row 4002, col 1: Handler: can't find handler (cdb_batchDeleteLocal)
 row 4002, col 1: Handler: error in statement (cdb_deleteLocal)
 row 3950, col 1: Handler: can't find handler (cdb_deleteLocal)
 row 3950, col 1: switch: error in statement
 row 3948, col 1: Handler: error in statement (cdbi_delete)
stack "/home/ua830318/public_html/edu.ezektec.com/EzekTecEdu/v1/CanelaDB/libraries/CDB_Header.lib"
 row 71, col 1: Handler: can't find handler (cdbi_delete)
 row 71, col 1: Handler: error in statement (cdb_delete)
stack "/home/ua830318/public_html/edu.ezektec.com/EzekTecEdu/v1/CanelaDB/libraries/CDB_Starter.lib"
 row 15941, col 1: Handler: can't find handler (cdb_delete)
 row 15941, col 1: if-then: error in statement
 row 15941, col 1: if-then: error in statement
 row 15941, col 1: repeat: error in statement
 row 15846, col 1: Handler: error in statement (csi_uploadRequest)
 row 15754, col 1: Handler: can't find handler (csi_uploadRequest)
 row 15754, col 1: Handler: error in statement (csi_flushCache)
 row 14104, col 1: Handler: can't find handler (csi_flushCache)
 row 14104, col 1: if-then: error in statement
 row 14100, col 1: Handler: error in statement (_csi_sendPackage)
 row 14052, col 18: Function: error in function handler (_csi_sendPackage)
 row 14052, col 18: Operators not: error in right operand
 row 14052, col 18: if-then: error in condition expression
 row 14052, col 18: if-then: error in condition expression
 row 14052, col 18: if-then: error in statement
 row 14010, col 1: Handler: error in statement (csi_sendPackageToServer)
 row 1270, col 1: Handler: can't find handler (csi_sendPackageToServer)
 row 1270, col 1: Handler: error in statement (cdb_requestNonceValue)
 row 1151, col 10: Function: error in function handler (cdb_requestNonceValue)
 row 1151, col 10: put: error in expression
 row 1151, col 1: Handler: error in statement (cdbi_auth)
stack "/home/ua830318/public_html/edu.ezektec.com/EzekTecEdu/v1/CanelaDB/libraries/CDB_Header.lib"
 row 165, col 10: Function: error in function handler (cdbi_auth)
 row 165, col 10: get: error in expression
 row 165, col 1: Handler: error in statement (cdb_auth)
file "/home/ua830318/public_html/edu.ezektec.com/EzekTecEdu/v1/lcServerVersion.lc"
 row 29, col 5: Function: error in function handler (cdb_auth)
 row 29, col 5: put: error in expression
file "/home/ua830318/public_html/edu.ezektec.com/EzekTecEdu/v1/cdb.lc"


Not to over-flog my perceived value of LiveCloud, but I do believe that a REST api for LiveCloud is a critical missing piece that can see LiveCloud begin to gain interest within the other mainstream/popular programming languages. I still dream of leveraging the power of LiveCloud in my web-based application built using HTML, LiveCode Server, Python, RUST, etc.

Needed to get that off my chest..Lol, back to the topic at hand, any tip on how to solve the above challenge will help me in my goal of getting closer to rolling a LiveCode Server LiveCloud REST api Cool

Will look out for replies.

Thank you
Passionate about working smart and helping with your projects
https://ezektec.com
  Reply


Messages In This Thread
LiveCode Server information - by jasonchan - 05-09-2019, 05:53 PM
RE: LiveCode Server information - by mark.h - 06-12-2019, 06:14 PM
RE: LiveCode Server information - by steveuba - 07-22-2020, 06:11 PM
RE: LiveCode Server information - by mark_talluto - 08-19-2020, 01:32 AM
RE: LiveCode Server information - by steveuba - 08-19-2020, 03:06 AM
RE: LiveCode Server information - by mark_talluto - 08-19-2020, 04:51 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)