Difference between revisions of "GIT"

From FusionPBX
Jump to: navigation, search
(Moving your server to GIT)
(LUA)
 
(19 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Moving your server to GIT==
+
 
 +
 
 +
==Move config.php and config.lua==
 +
Save config.php and config.lua to a safer location. This could have been done already so check to see if it exists.
 +
ls -lh /etc/fusionpbx
 +
 +
Create the directory and move the files to that location.
 +
mkdir /etc/fusionpbx
 +
mv /var/www/fusionpbx/resources/config.php /etc/fusionpbx
 +
mv /usr/local/freeswitch/scripts/resources/config.lua /etc/fusionpbx
 +
 
 +
==Moving your server from SVN to GIT==
 
  cd /var/www/
 
  cd /var/www/
 
  mv fusionpbx fusionpbx-svn
 
  mv fusionpbx fusionpbx-svn
 
  git clone https://github.com/fusionpbx/fusionpbx.git
 
  git clone https://github.com/fusionpbx/fusionpbx.git
 +
 +
==LUA==
 +
Remove the comments from the script-directory in /usr/local/freeswitch/conf/autoload_configs/lua.conf.xml
 +
 +
If using the FreesWITCH package then remove $${base_dir} and set the full path to the scripts directory.
 +
 +
&lt;!--<param name="script-directory" value="$${base_dir}/scripts/?.lua"/>--&gt;
 +
 +
or
 +
 +
<param name="script-directory" value="/usr/local/freeswitch/scripts/?.lua"/>
 +
 +
Rebooting FreeSWITCH is required for this to take effect.
 +
 +
==If using SQLite==
 +
This assumes that SQLite is in /var/www/fusionpbx/secure directory and its named fusionpbx.db
 +
mv /var/www/fusionpbx-svn/secure/fusionpbx.db /var/www/fusionpbx/secure/
  
 
==Additional Notes==
 
==Additional Notes==
* Check here for more info https://github.com/fusionpbx/fusionpbx/blob/master/README.md
+
* Check here for more info https://github.com/fusionpbx/fusionpbx
 +
* Location to submit issues or view bug reports https://github.com/fusionpbx/fusionpbx/issues?q=is%3Aopen+is%3Aissue
 
* https://help.github.com/
 
* https://help.github.com/
* Location to submit issues or view bug reports https://github.com/fusionpbx/fusionpbx/issues?q=is%3Aopen+is%3Aissue
 

Latest revision as of 18:42, 13 August 2015


Move config.php and config.lua

Save config.php and config.lua to a safer location. This could have been done already so check to see if it exists.

ls -lh /etc/fusionpbx

Create the directory and move the files to that location.

mkdir /etc/fusionpbx
mv /var/www/fusionpbx/resources/config.php /etc/fusionpbx
mv /usr/local/freeswitch/scripts/resources/config.lua /etc/fusionpbx

Moving your server from SVN to GIT

cd /var/www/
mv fusionpbx fusionpbx-svn
git clone https://github.com/fusionpbx/fusionpbx.git

LUA

Remove the comments from the script-directory in /usr/local/freeswitch/conf/autoload_configs/lua.conf.xml

If using the FreesWITCH package then remove $${base_dir} and set the full path to the scripts directory.

<!--<param name="script-directory" value="$${base_dir}/scripts/?.lua"/>-->

or

<param name="script-directory" value="/usr/local/freeswitch/scripts/?.lua"/>

Rebooting FreeSWITCH is required for this to take effect.

If using SQLite

This assumes that SQLite is in /var/www/fusionpbx/secure directory and its named fusionpbx.db

mv /var/www/fusionpbx-svn/secure/fusionpbx.db /var/www/fusionpbx/secure/

Additional Notes