-
Notifications
You must be signed in to change notification settings - Fork 53
Silgy Hello World – Getting Started on Linux
Jurek Muszyński edited this page Sep 11, 2020
·
12 revisions
sudo yum install gcc-c++
git clone https://github.com/silgy/silgy
m and silgy scripts must have executable flags:
cd <your-project-dir>/src
chmod u+x m
chmod u+x silgy
./m
./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.
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.
On some systems you may need to install zlib developer pack:
sudo yum install zlib-devel