These steps were made with Ubuntu 14.04 e ruby 2.3.1. To enjoy the ease of step-by-step, I suggest not change folders and application name - just change the server ip and git
# Server console
sudo adduser deployer
sudo gpasswd -a deployer sudo
| function my_function(param) { | |
| console.log("in correct function"); | |
| console.log(param); | |
| } |
| (function(){ | |
| window['GoogleAnalyticsObject'] = 'ga'; | |
| window['ga'] = | |
| window['ga'] | |
| || | |
| function(){ | |
| (window['ga'].q = window['ga'].q || []) | |
| .push(arguments) | |
| }, | |
| window['ga'].l = 1 * new Date(); |
| <%= form_for(@model, remote: true, html: {role: :form, 'data-model' => 'MODEL_NAME', class: 'send_ajax'}) do |f| %> | |
| <% if @model.errors.any? %> | |
| <div id="error_explanation"> | |
| <h2><%= pluralize(@model.errors.count, "error") %> prohibited this tip from being saved:</h2> | |
| <ul> | |
| <% @model.errors.full_messages.each do |message| %> | |
| <li><%= message %></li> | |
| <% end %> | |
| </ul> |
| require 'uglifier' | |
| Rails.application.configure do | |
| # ... | |
| # config.assets.js_compressor = :uglifier | |
| config.assets.js_compressor = Uglifier.new(compress: { unused: false }) | |
| #... | |
| end |
| module ApplicationHelper | |
| def menu_li_link(content, path, controller="") | |
| options = current_page?(path) || controller_name == controller ? { class: "active" } : {} | |
| content_tag(:li, options) do | |
| link_to content, path | |
| end | |
| end | |
| end |
| Install-Package MvcScaffolding -Version 1.0.8-vs2013 -Pre | |
| Install-Package MvcMailer-vs2013 -Version 4.5.1-pre |
| <system.webServer> | |
| <staticContent> | |
| <remove fileExtension=".woff"/> | |
| <remove fileExtension=".woff2"/> | |
| <mimeMap fileExtension=".woff" mimeType="application/font-woff"/> | |
| <mimeMap fileExtension=".woff2" mimeType="application/font-woff2"/> | |
| </staticContent> | |
| </system.webServer> |
| - Fazer download do arquivo e salvar no Desktop | |
| https://gist.github.com/fnichol/867550/raw/win_fetch_cacerts.rb | |
| - Abra o cmd e cole codigo abaixo | |
| ruby "%USERPROFILE%\Desktop\win_fetch_cacerts.rb" | |
| - Insira a variável de ambiente abaixo: | |
| Variavel: SSL_CERT_FILE | |
| Valor: C:\RailsInstaller\cacert.pem | |
| private Context context = new Context(); | |
| protected override void Dispose(bool disposing) | |
| { | |
| if (disposing) { | |
| context.Dispose(); | |
| } | |
| base.Dispose(disposing); | |
| } |