For run every script i do:
go build script.go
mv script script.fcgi
My apache config looks so:
<VirtualHost [myip]:80>
ServerAdmin webmaster@example.com
ServerName website.com
DocumentRoot /home/user/www
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /our_bin [QSA,L]
<Directory /home/user/www>
Allow from all
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d [OR]
RewriteCond %{REQUEST_URI} ^/$
RewriteRule ^(.*)$ script.fcgi/$1 [QSA,L]
</Directory>
</VirtualHost>
Question: 1) If i build 1 script, it will builded with all packages that i link, right? 2) How i can customize fcgi and go so that it will not need build every time
sorry for bad english