Follow the steps from 0:
0. Install Ruby Dependancies
2. Install Rails 2.3.5
0. Install Ruby Dependancies
- apt-get update
- apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties
- apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
- curl -L https://get.rvm.io | bash -s stable
- source /usr/local/rvm/scripts/rvm
- echo "source /usr/local/rvm/scripts/rvm" >> ~/.bashrc
- rvm install 1.8.7
- rvm use 1.8.7 --default
- ruby -v
2. Install Rails 2.3.5
- gem install rails -v 2.3.5 --no-rdoc --no-ri
- Install the remaining gems
- gem uninstall -i /usr/local/rvm/gems/ruby-1.8.7-head@global rake
- gem install rake -v 0.8.7
- gem install declarative_authorization -v 0.5.1
- gem install i18n -v 0.4.2
- gem install mysql
- gem install rush -v 0.6.8
- gem update --system 1.3.7
- gem install rmagick -v 2.16.0
- apt-get install libmysqlclient-dev mysql-server
4. Download Fedena or Copy in the folder if you already have, unzip if it is zipped.
5. Setup your database details in the database.yml
6. Now set up Fedena databases
From the Fedena source directory in the terminal run,
From the Fedena source directory in the terminal run,
- rake db:create
- In config/initializers/ create a file abstract_mysql_adapter.rb
paste the below code and save
NATIVE_DATABASE_TYPES[:primary_key] = "int(11) auto_increment PRIMARY KEY"
end
- rake db:migrate
- rake fedena:plugins:install_all
7. Set up pdf setings
- apt-get install wkhtmltopdf
- cd config/initializers
- Change wicked_pdf.rb.example file name to wicked_pdf.rb if not there.
- cp wicked_pdf.rb.example wicked_pdf.rb
- edit wicked_pdf.rb
- change :wkhtmltopdf => ‘/opt/wkhtmltopdf’, to :wkhtmltopdf => ‘/usr/bin/wkhtmltopdf’,
- save the file by pressing ctrl+O
- and exit by pressing ctrl+X
8. Image upload settings
- apt-get install imagemagick
- apt-get install libmagickwand-dev
9. Setup Email
- cd config
- cp smtp_settings.yml.example smtp_settings.yml
10. Setup Sms
sms_settings:
11. Run seed
- First of all, make your server as SMS gateway by installing software and use a gsm modem or your mobile as a gsm modem.
- The best software you can use for SMS gateway is kannel. needs few changes to work after installation.
- Kannel configuration can be found here
- Add below settings in the config/sms_settings.yml
sms_settings:
username: Kanneluser
password: KannelPassword
sendername: Fedena
host_url: http://127.0.0.1:13013/cgi-bin/sendsms
success_code: "ok"
sendername: Fedena
host_url: http://127.0.0.1:13013/cgi-bin/sendsms
success_code: "ok"
11. Run seed
- rake db:seed
Run Server by following command:
$ script/server
$ script/server
Comments
Post a Comment