<div dir="ltr"><font face="monospace, monospace">Hi - </font><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">TL;DR: </font><font face="monospace, monospace">Is it possible to do a minimal or "bare-bones" deployment *without* building & installing the Ur/Web compiler on the *remote* machine - eg, simply by manually copying the </font><span style="font-family:monospace,monospace">/usr/local/lib</span><span style="font-family:monospace,monospace">liburweb_* files (plus </span><span style="font-family:monospace,monospace">/usr/local/lib/urweb/js/urweb.js)</span><span style="font-family:monospace,monospace"> to the remote machine - while of course also taking care to preserve the same owners/groups, permissions and symlinks?</span></div><div><span style="font-family:monospace,monospace"><br></span></div><div><span style="font-family:monospace,monospace">---</span></div><div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">I would like to deploy a compiled Ur/Web executable to a remote machine (running Debian 8 Jessie), *without* building & installing the Ur/Web compiler on that remote machine, for two reasons:</font></div><div><span style="font-family:monospace,monospace"><br></span></div><div><span style="font-family:monospace,monospace">- Ur/Web executables have low RAM usage, so I'd like the smallest/cheapest VPS possible during testing;</span></div><div><span style="font-family:monospace,monospace"><br></span></div><div><span style="font-family:monospace,monospace">- compiling on a local machine with more RAM would provide better efficiency and privacy.</span></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Both the local and the remote machines have an identical "base" setup:</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">- Debian 8 Jessie;</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">- Postgres 9.4 </font><span style="font-family:monospace,monospace">(with a Linux/Postgres user scott, with the same local/remote Postgres password)</span></div><div><br></div><div><font face="monospace, monospace">The local and remote machines differ as follows:</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">- the local machine has 4 GB RAM, and runs the Ur/Web compiler;</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">- the remote machine has only 1 GB RAM, and should not run the Ur/Web compiler.</font></div><div><br></div><div><font face="monospace, monospace">Now </font><span style="font-family:monospace,monospace">when I try to run the Ur/Web executable on the remote machine:</span></div><div><span style="font-family:monospace,monospace"><br></span></div><div><font face="monospace, monospace">$ ./myProgram.exe</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">it gives the error:</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">./myProgram.exe: error while loading shared libraries: liburweb_http.so.0: cannot open shared object file: No such file or directory<br></font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">---</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Inspecting </font><span style="font-family:monospace,monospace">/usr/local/lib on the</span><span style="font-family:monospace,monospace"> local machine, I see the `liburweb_*` shared libraries listed at the end of this message, plus </span><span style="font-family:monospace,monospace">/usr/local/lib/urweb/js/urweb.js. [See Note 1]</span></div><div><span style="font-family:monospace,monospace"><br></span></div><div><span style="font-family:monospace,monospace">Maybe only those files are needed for deployment? Of course, it would also be important to take into consideration the owners/groups, permissions and symlinks.</span></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">If someone could confirm that I could deploy remotely simply by *manually* reconstructing this same /usr/local/lib directory structure on the remote machine - including </font><span style="font-family:monospace,monospace">/usr/local/lib/urweb/js/urweb.js</span><span style="font-family:monospace,monospace"> (while maintaining the symlinks, owners/groups and permissions), then I'd actually go ahead and try it this way - since </span><span style="font-family:monospace,monospace">I prefer to develop and compile locally and only deploy remotely.</span></div><div><br></div><div><font face="monospace, monospace">Thanks for any help!</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">---</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">[Note 1] libs currently on local machine</font></div><div><font face="monospace, monospace"><br></font></div><div><div><font face="monospace, monospace">scott@debian-local:~$ ls -al /usr/local/lib</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">total 1140</font></div><div><font face="monospace, monospace">-rw-r--r--  1 root staff 465652 liburweb.a<br></font></div><div><font face="monospace, monospace">-rw-r--r--  1 root staff  30242 liburweb_cgi.a</font></div><div><font face="monospace, monospace">-rwxr-xr-x  1 root staff   1035 <a href="http://liburweb_cgi.la">liburweb_cgi.la</a></font></div><div><font face="monospace, monospace">lrwxrwxrwx  1 root staff     21 liburweb_cgi.so -> liburweb_cgi.so.0.0.0</font></div><div><font face="monospace, monospace">lrwxrwxrwx  1 root staff     21 liburweb_cgi.so.0 -> liburweb_cgi.so.0.0.0</font></div><div><font face="monospace, monospace">-rwxr-xr-x  1 root staff  23248 liburweb_cgi.so.0.0.0</font></div><div><font face="monospace, monospace">-rw-r--r--  1 root staff  78490 liburweb_fastcgi.a</font></div><div><font face="monospace, monospace">-rwxr-xr-x  1 root staff   1063 <a href="http://liburweb_fastcgi.la">liburweb_fastcgi.la</a></font></div><div><font face="monospace, monospace">lrwxrwxrwx  1 root staff     25 liburweb_fastcgi.so -> liburweb_fastcgi.so.0.0.0</font></div><div><font face="monospace, monospace">lrwxrwxrwx  1 root staff     25 liburweb_fastcgi.so.0 -> liburweb_fastcgi.so.0.0.0</font></div><div><font face="monospace, monospace">-rwxr-xr-x  1 root staff  48456 liburweb_fastcgi.so.0.0.0</font></div><div><font face="monospace, monospace">-rw-r--r--  1 root staff  72456 liburweb_http.a</font></div><div><font face="monospace, monospace">-rwxr-xr-x  1 root staff   1042 <a href="http://liburweb_http.la">liburweb_http.la</a></font></div><div><font face="monospace, monospace">lrwxrwxrwx  1 root staff     22 liburweb_http.so -> liburweb_http.so.0.0.0</font></div><div><font face="monospace, monospace">lrwxrwxrwx  1 root staff     22 liburweb_http.so.0 -> liburweb_http.so.0.0.0</font></div><div><font face="monospace, monospace">-rwxr-xr-x  1 root staff  45128 liburweb_http.so.0.0.0</font></div><div><font face="monospace, monospace">-rwxr-xr-x  1 root staff    980 <a href="http://liburweb.la">liburweb.la</a></font></div><div><font face="monospace, monospace">lrwxrwxrwx  1 root staff     17 liburweb.so -> liburweb.so.0.0.0</font></div><div><font face="monospace, monospace">lrwxrwxrwx  1 root staff     17 liburweb.so.0 -> liburweb.so.0.0.0</font></div><div><font face="monospace, monospace">-rwxr-xr-x  1 root staff 311000 liburweb.so.0.0.0</font></div><div><font face="monospace, monospace">-rw-r--r--  1 root staff  16690 liburweb_static.a</font></div><div><font face="monospace, monospace">-rwxr-xr-x  1 root staff   1056 <a href="http://liburweb_static.la">liburweb_static.la</a></font></div><div><font face="monospace, monospace">lrwxrwxrwx  1 root staff     24 liburweb_static.so -> liburweb_static.so.0.0.0</font></div><div><font face="monospace, monospace">lrwxrwxrwx  1 root staff     24 liburweb_static.so.0 -> liburweb_static.so.0.0.0</font></div><div><font face="monospace, monospace">-rwxr-xr-x  1 root staff  16080 liburweb_static.so.0.0.0</font></div><div><font face="monospace, monospace">drwxrwsr-x  4 root staff   4096 python2.7</font></div><div><font face="monospace, monospace">drwxrwsr-x  3 root staff   4096 python3.4</font></div><div><font face="monospace, monospace">drwxr-sr-x  7 root staff   4096 urweb</font></div></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">---</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">[Note 2] libs currently on remote machine</font></div><div><font face="monospace, monospace"><br></font></div><div><div><font face="monospace, monospace">scott@debian-remote:~$ ls -l /usr/local/lib</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">total 8</font></div><div><font face="monospace, monospace">drwxrwsr-x 4 root staff 4096 python2.7</font></div><div><font face="monospace, monospace">drwxrwsr-x 3 root staff 4096 python3.4</font></div></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">###</font></div><div><br></div></div></div>