This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| production: | |
| adapter: mysql2 | |
| encoding: utf8 | |
| reconnect: true | |
| database: escamboapp | |
| pool: 5 | |
| username: root | |
| password: <sua-senha> | |
| socket: /var/run/mysqld/mysqld.sock |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| user www-data www-data; | |
| worker_processes 4; | |
| pid /var/run/nginx.pid; | |
| events { | |
| worker_connections 1024; | |
| } | |
| http { | |
| include /etc/nginx/mime.types; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| upstream escamboapp { | |
| server unix:/tmp/escamboapp.sock fail_timeout=0; | |
| } | |
| server { | |
| listen 80; | |
| server_name escamboapp.com.br; | |
| root /var/www/escamboapp/current/public; | |
| index index.html index.htm; | |
| client_max_body_size 10M; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| root = "/var/www/escamboapp/current" | |
| working_directory root | |
| pid "#{root}/tmp/pids/unicorn.pid" | |
| stderr_path "#{root}/log/unicorn.log" | |
| stdout_path "#{root}/log/unicorn.log" | |
| worker_processes 4 | |
| timeout 30 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| upstream escamboapp { | |
| server unix:/tmp/escamboapp.sock fail_timeout=0; | |
| } | |
| server { | |
| listen 80; | |
| server_name example.com; | |
| return 301 https://$host$request_uri; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/app/controllers/sales_controller.rb b/app/controllers/sales_controller.rb | |
| index b06d59c..c575dfb 100644 | |
| --- a/app/controllers/sales_controller.rb | |
| +++ b/app/controllers/sales_controller.rb | |
| @@ -78,6 +78,6 @@ class SalesController < ApplicationController | |
| # Never trust parameters from the scary internet, only allow the white list through. | |
| def sale_params | |
| - params.require(:sale).permit(:date, :buyer, :discount, :pay_method_id, :seller_id, :product_id, :rmk) | |
| + params.require(:sale).permit(:date, :buyer, :discount, :paymethod_id, :seller_id, :product_id, :rmk) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ubuntu:16.04 | |
| LABEL maintainer="Jackson Pires" | |
| RUN apt-get update | |
| RUN apt-get install -y openssh-server vim curl git sudo | |
| RUN apt-get update | |
| RUN apt-get install -y build-essential automake autoconf \ | |
| bison libssl-dev libyaml-dev libreadline6-dev \ | |
| zlib1g-dev libncurses5-dev libffi-dev libgdbm-dev \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ng serve --host $IP --port $PORT --live-reload-port 8081 --public-host https://<project>-<user>.c9users.io/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| Vagrant.configure("2") do |config| | |
| config.vm.box = "jacksonpires/ubuntu-rails-dev" | |
| config.vm.box_version = "1.0.0" | |
| config.vm.network :forwarded_port, guest: 3000, host: 3000 # rails | |
| config.vm.network :forwarded_port, guest: 9292, host: 9292 # rack | |
| config.vm.network :forwarded_port, guest: 4567, host: 4567 # sinatra |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM node:carbon | |
| WORKDIR /usr/src/app | |
| COPY crud-node-postgres/package*.json ./ | |
| RUN npm install | |
| COPY ./crud-node-postgres/ . | |
| RUN npm install -g bower |