Skip to content

Silgy Hello World – Getting Started on Linux

Jurek Muszyński edited this page Sep 11, 2020 · 12 revisions

1. Install C/C++ compiler

sudo yum install gcc-c++

2. Clone or unpack Silgy

git clone https://github.com/silgy/silgy

3. Set files' flags

m and silgy scripts must have executable flags:

cd <your-project-dir>/src
chmod u+x m
chmod u+x silgy

4. Compile

./m

5. Run in a developer mode

./silgy

That's it. Your app should now be online on the port 8080. To stop it, press Ctrl+C.

For a normal, 'no-hangup mode', there are scripts in bin directory: silgystart and silgystop. Make sure you set $SILGYDIR in your environment or in those scripts, adding:

export SILGYDIR=<your-project-dir>

To access ports 80 and 443 you need to be root.

Troubleshooting

Closed ports

For your own good, some cloud vendors (AWS being one of them) create instances with a very restricted security policy with only SSH port (22) open. You may need to edit that policy and add HTTP port you want to use, before AWS lets your browser in.

Missing zlib

On some systems you may need to install zlib developer pack:

sudo yum install zlib-devel
Clone this wiki locally