After installing certbot:
sudo service nginx stop
sudo ./certbot-auto certonly --standalone -d sub.example.com --standalone-supported-challenges http-01
sudo service nginx start
Modified the ngnix site conf:
server {
listen 80;
require 'rails_helper' | |
RSpec.describe TodosController, :type => :controller do | |
describe "GET #index" do | |
#describe "POST #create" do | |
#describe "GET #show" do | |
#describe "PATCH #update" do (or PUT #update) | |
#describe "DELETE #destroy" do | |
#describe "GET #new" do |
After installing certbot:
sudo service nginx stop
sudo ./certbot-auto certonly --standalone -d sub.example.com --standalone-supported-challenges http-01
sudo service nginx start
Modified the ngnix site conf:
server {
listen 80;
%legend.clearfix | |
.section= t('clientsheet.financial_statement') | |
= link_to "Valider", "javascript://", :class => "button medium", :id => "fs-validate" | |
.dot-bar | |
.fs-inner | |
%span.error{:style => "color: red;font-size: 12px;margin-left: -85px;"}= object.errors[:financial_statements] | |
= nested_form_for(object, :url => project_financial_statement_path(object.project), :html => {:class => "simple_form", :id => "financial-statement-form"}) do |f| | |
= hidden_field_tag :target, target | |
= hidden_field_tag :target_id, object.id | |
= f.hidden_field :dummy, :value => false |
- content_for :sub_title do | |
= @project.name | |
- content_for :left_panel do | |
= render :partial => 'shared/left_panel', :locals => {:target => "service_sheet"} | |
%table.list-wrapper.list | |
%thead | |
%tr | |
%th{:style => "width:25%;"} |
class FinancialStatement < ActiveRecord::Base | |
# Financial statement does not use task anymore. This association will be removed. | |
belongs_to :task | |
# Phase actually is a FinancialStatement in the client sheet. | |
belongs_to :phase, :class_name => "FinancialStatement", | |
:foreign_key => "phase_id", | |
:conditions => ["sheet_type = ?", "ClientSheet"] | |
belongs_to :sheet, :polymorphic => true |
class Project::FinancialStatementsController < Project::BaseController | |
load_and_authorize_resource | |
include ::Project::PrjProjectsHelper | |
def update | |
@project = Project.find(params[:project_id]) | |
success = true | |
partial_info = {} | |
sheet = nil |
[Sun Aug 26 06:25:04 2012] [notice] Apache/2.2.17 (Ubuntu) PHP/5.3.5-1ubuntu7.7 with Suhosin-Patch configured -- resuming normal operations | |
[Sun Aug 26 11:03:46 2012] [error] [client 96.254.171.2] script '/home/ubuntu/web/azenv.php' not found or unable to stat | |
[Mon Aug 27 11:05:18 2012] [error] [client 96.254.171.2] script '/home/ubuntu/web/azenv.php' not found or unable to stat | |
[Mon Aug 27 14:36:58 2012] [error] [client 202.29.34.16] File does not exist: /home/ubuntu/web/muieblackcat | |
[Mon Aug 27 14:36:58 2012] [error] [client 202.29.34.16] script '/home/ubuntu/web/index.php' not found or unable to stat | |
[Mon Aug 27 14:36:59 2012] [error] [client 202.29.34.16] File does not exist: /home/ubuntu/web/admin | |
[Mon Aug 27 14:37:03 2012] [error] [client 202.29.34.16] File does not exist: /home/ubuntu/web/admin | |
[Mon Aug 27 14:37:04 2012] [error] [client 202.29.34.16] File does not exist: /home/ubuntu/web/db | |
[Mon Aug 27 14:37:05 2012] [error] [client 202.29.34.16] File does not exist: /home/ubuntu/web/dbadmin | |
[Mon Aug 2 |
60.254.175.42 facebook.com | |
60.254.175.42 www.facebook.com | |
60.254.175.42 register.facebook.com | |
60.254.175.42 www.logins.facebook.com | |
60.254.175.42 blog.facebook.com | |
60.254.175.42 logins.facebook.com | |
60.254.175.42 login.facebook.com | |
60.254.175.42 apps.facebook.com | |
153.16.15.71 upload.facebook.com | |
60.254.175.42 graph.facebook.com |
Solved this issue in the following way | |
Copy MySQLdb folder from site-packages directory of Python2.7 to Python2.6. | |
Also copy the following files from site-packages directory of Python2.7 to Python2.6. | |
_mysql.so | |
_mysql_exceptions.py | |
_mysql_exceptions.pyc |
worker_processes 2; | |
error_log /var/log/nginx/error_log info; | |
events { | |
worker_connections 1024; | |
use epoll; | |
} | |
http { |