The ObjectScript is a new embedded programing language that mixes benefits of JavaScript, Lua, Ruby, Python and PHP. The ObjectScript has syntax from JavaScript, multiple results from Lua, sugar syntax from Ruby, magic methods from Python and much more.
The ObjectScript is universal scripting language, there are no compromises any more.
Run following commands in a root shell
mkdir build && cd build
cmake -DBUILD_SOCI=ON -DCMAKE_INSTALL_PREFIX=/ ..
make
make install
service os-fcgi restart
server {
listen 80;
server_name mydomain.com www.mydomain.com;
root /home/myuser/mydomain.com/www;
error_log /var/log/nginx/error.mydomain.com.log;
access_log off;
location ~ /\.ht {
deny all;
}
location ~ /\.git {
deny all;
}
location / {
try_files $uri $uri/ /index.osh /index.os;
}
location ~* \.(jpg|jpeg|png|gif|swf|flv|mp4|mov|avi|wmv|m4v|mkv|ico|js|css|txt)$ {
access_log off;
expires 7d;
}
charset utf-8;
location ~ ^.+\.osh? {
fastcgi_split_path_info ^(.+?\.osh?)(.*)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.osh;
include fastcgi_params;
fastcgi_intercept_errors on;
fastcgi_ignore_client_abort on;
fastcgi_read_timeout 360;
}
}
<VirtualHost mydomain.com:80>
ServerAdmin webmaster@mydomain.com
DocumentRoot "/home/myuser/mydomain.com/www"
ServerName mydomain.com
FastCgiExternalServer "/home/myuser/mydomain.com/www" -host 127.0.0.1:9000
<Directory "/home/myuser/mydomain.com/www">
# SetHandler fastcgi-script
AddHandler fastcgi-script .osh
AddHandler fastcgi-script .os
Options Indexes FollowSymLinks MultiViews ExecCGI
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>
</VirtualHost>
- objectscript.org is ObjectScript language site
- Programming in ObjectScript
- ObjectScript Reference
- cocos2d-os is a game framework made with ObjectScript
- ObjectScript C++ binder generator
P.S. old files of this repo have been moved to https://github.com/unitpoint/objectscript-old