开发SMS日志

1、搭建环境
   安装ruby、rubygems、rails
   sudo apt-get install rails

2、安装mysql
   sudo apt-get install mysql-server mysql-client libmysql-ruby

3、安装gem 2.3.2
   sudo gem install rails -v=2.3.2

4、配置database.yml
   database: sms - The name of the database you want to use for fedena
   username: root - Mysql username for fedena
   password: mypass - The password for the above mysql user

5、安装pdf插件prawn
   sudo gem install prawn -v=0.6.3

6、安装剩余的gems
   sudo rake gems:install

7、创建数据库及其迁徙
   rake db:create/rake db:migrate

8、赋予script权限
   chmod +x script/*

9、起服务
   script/server(若装了mongrel则,mongrel_rails start -d——隐藏操作日志)

10、sms配置
 
 先把configurations表down回去(rake db:migrate:down VERSION=20090622102004)
 把config_key = "AvailableModules" and config_value = "HR"和config_key = "AvailableModules" and config_value = "Finance" 屏蔽掉同时添加config_key = "AvailableModules" and config_value = "SMS"通过SMS模板更新
   lib/sms_manager.rb

你可能感兴趣的:(mysql,Ruby,Rails,rubygems)