我是一名铁杆新手,为我的rails应用程序实施Capistrano首次在aws ec2上部署。将非常感谢帮助。
我在aws上实例化了一个ubuntu ec2实例。我的Capistrano文件如下。
deploy.rb
Error
SQL query: DocumentationEdit Edit
SELECT `comment`
FROM `phpmyadmin`.`pma__column_info`
WHERE db_name = 'sql_route10'
AND table_name = ''
AND column_name = '(db_comment)'
MySQL said: Documentation
#1100 - Table 'pma__column_info' was not locked with LOCK TABLES
staging.rb
$cfg['Servers'][$i]['pmadb'] = $dbname;
我的aws安全密钥对位于home / .ec2 / stage1.pem
当我运行“cap staging deploy”
时我收到了这个错误。
/* Optional: User for advanced features */
77 $cfg['Servers'][$i]['controluser'] = 'dbuser';
78 $cfg['Servers'][$i]['controlpass'] = 'dbpass';