Skip to content

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.

License

Notifications You must be signed in to change notification settings

mvpetrov/objectscript_odbc

 
 

Repository files navigation

ObjectScript

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.

Compile and Install os-fcgi and os

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 

Nginx config example (for os-fcgi)

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;
	}
}

Apache config example (for os-fcgi)

<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> 	

Resources

P.S. old files of this repo have been moved to https://github.com/unitpoint/objectscript-old

About

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 73.5%
  • C++ 26.1%
  • Objective-C 0.2%
  • XSLT 0.1%
  • CSS 0.1%
  • Vim Script 0.0%