Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cleaning-portalmec
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Richard Fernando Heise Ferreira
cleaning-portalmec
Commits
cf80522d
Commit
cf80522d
authored
9 years ago
by
Mauricio Giacomini Girardello
Browse files
Options
Downloads
Patches
Plain Diff
config deployment tasks
parent
eceb04de
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
analise
+0
-22
0 additions, 22 deletions
analise
config/database.yml
+0
-67
0 additions, 67 deletions
config/database.yml
config/deploy.rb
+12
-76
12 additions, 76 deletions
config/deploy.rb
teste
+0
-1
0 additions, 1 deletion
teste
with
12 additions
and
166 deletions
analise
deleted
100644 → 0
+
0
−
22
View file @
eceb04de
À direita, os paladinos da legalidade; À esquerda, a vítima imobilizada.
"Chama-se a atenção para isso, como se houvesse algo de irregular nesses dois
fatos."
Tradução : reclamam que as empreiteiras e bancos tem lucros recordes com o
dinheiro que lá injetamso, mas estamos nas regras do jogo!
A frase é emblemática, e representa a estratégia retórica que o governo segue
desde e a "carta ao povo brasileiro": a
necessidade urgente de demonstrar aos grupos midiáticos, tacitamente aos
grandes investidores, a pureza e a transparência dos negócios e dos trâmites
engendrados, dos lucros recordes dos bancos, o
caráter liberal do governo, e, principalmente, o afastamento desses "bolivarianos",
"comunistas", um pupilo exemplar do Estado democrático de direito!
Mas se para 'nós', os que nos denominamos esquerda ( e aqui não me aprofundo nem em
marxistas, marxistas-leninistas, etc), a transparência dos contratos, o respeito às
instituições do Estado, o hasteamento da bandeira da 'maior empreiteira da
América Latina', a exploração de
minério em Moçambique, é o grau em que podemos nos considerar satisfeitos,
cumpridores do dever histórico a que nos propomos desempenhar, algo parece muito
contraditótio.
This diff is collapsed.
Click to expand it.
config/database.yml
+
0
−
67
View file @
cf80522d
# PostgreSQL. Versions 8.2 and up are supported.
#
# Install the pg driver:
# gem install pg
# On OS X with Homebrew:
# gem install pg -- --with-pg-config=/usr/local/bin/pg_config
# On OS X with MacPorts:
# gem install pg -- --with-pg-config=/opt/local/lib/postgresql84/bin/pg_config
# On Windows:
# gem install pg
# Choose the win32 build.
# Install PostgreSQL and put its /bin directory on your path.
#
# Configure Using Gemfile
# gem 'pg'
#
default
:
&default
default
:
&default
adapter
:
postgresql
adapter
:
postgresql
encoding
:
unicode
encoding
:
unicode
# For details on connection pooling, see rails configuration guide
# http://guides.rubyonrails.org/configuring.html#database-pooling
pool
:
5
pool
:
5
development
:
&development
development
:
&development
...
@@ -27,59 +9,10 @@ development: &development
...
@@ -27,59 +9,10 @@ development: &development
timeout
:
5000
timeout
:
5000
database
:
db/development.sqlite3
database
:
db/development.sqlite3
# The specified database role being used to connect to postgres.
# To create additional roles in postgres see `$ createuser --help`.
# When left blank, postgres will use the default role. This is
# the same name as the operating system user that initialized the database.
#username: portalmec
# The password associated with the postgres role (username).
#password:
# Connect on a TCP socket. Omitted by default since the client uses a
# domain socket that doesn't need configuration. Windows does not have
# domain sockets, so uncomment these lines.
#host: localhost
# The TCP port the server listens on. Defaults to 5432.
# If your server runs on a different port number, change accordingly.
#port: 5432
# Schema search path. The server defaults to $user,public
#schema_search_path: myapp,sharedapp,public
# Minimum log levels, in increasing order:
# debug5, debug4, debug3, debug2, debug1,
# log, notice, warning, error, fatal, and panic
# Defaults to warning.
#min_messages: notice
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test
:
test
:
<<
:
*development
<<
:
*development
database
:
db/test.sqlite3
database
:
db/test.sqlite3
# As with config/secrets.yml, you never want to store sensitive information,
# like your database password, in your source code. If your source code is
# ever seen by anyone, they now have access to your database.
#
# Instead, provide the password as a unix environment variable when you boot
# the app. Read http://guides.rubyonrails.org/configuring.html#configuring-a-database
# for a full rundown on how to provide these environment variables in a
# production deployment.
#
# On Heroku and other platform providers, you may have a full connection URL
# available as an environment variable. For example:
#
# DATABASE_URL="postgres://myuser:mypass@localhost/somedatabase"
#
# You can use this database configuration with:
#
# production:
# url: <%= ENV['DATABASE_URL'] %>
#
production
:
production
:
<<
:
*default
<<
:
*default
database
:
portalmec_production
database
:
portalmec_production
...
...
This diff is collapsed.
Click to expand it.
config/deploy.rb
+
12
−
76
View file @
cf80522d
require
'mina/bundler'
require
'mina/bundler'
require
'mina/rails'
require
'mina/rails'
require
'mina/git'
require
'mina/git'
# require 'mina/rbenv' # for rbenv support. (http://rbenv.org)
#require 'mina/rbenv'
require
'mina/rvm'
# for rvm support. (http://rvm.io)
# Basic settings:
set
:rails_env
,
'production'
# domain - The hostname to SSH to.
# deploy_to - Path to deploy into.
# repository - Git repo to clone from. (needed by mina/git)
# branch - Branch name to deploy. (needed by mina/git)
set
:domain
,
'portalmecdev.c3sl.ufpr.br'
set
:domain
,
'portalmecdev.c3sl.ufpr.br'
set
:deploy_to
,
'/home/portalmec/portalmec-production'
set
:deploy_to
,
"/home/portalmec/
#{
rails_env
}
"
set
:repository
,
'https://gitlab.c3sl.ufpr.br/portalmec/portalmec.git'
set
:app_path
,
"
#{
deploy_to
}
/
#{
current_path
}
"
set
:branch
,
'master'
set
:repository
,
'git@gitlab.c3sl.ufpr.br:portalmec/portalmec.git'
set
:branch
,
'master'
set
:user
,
'portalmec'
# For system-wide RVM install.
set
:rvm_path
,
'/usr/local/rvm/bin/rvm'
# Manually create these paths in shared/ (eg: shared/config/database.yml) in your server.
# They will be linked in the 'deploy:link_shared_paths' step.
set
:shared_paths
,
[
'config/database.yml'
,
'config/secrets.yml'
,
'log'
]
# Optional settings:
# set :user, 'foobar' # Username in the server to SSH to.
# set :port, '30000' # SSH port number.
# set :forward_agent, true # SSH forward_agent.
# This task is the environment that is loaded for most commands, such as
# `mina deploy` or `mina rake`.
task
:environment
do
task
:environment
do
# If you're using rbenv, use this to load the rbenv environment.
#invoke :'rbenv:load'
# Be sure to commit your .ruby-version or .rbenv-version to your repository.
# invoke :'rbenv:load'
# For those using RVM, use this to load an RVM version@gemset.
# invoke :'rvm:use[ruby-1.9.3-p125@default]'
end
end
# Put any custom mkdir's in here for when `mina setup` is ran.
task
deploy: :environment
do
# For Rails apps, we'll make some of the shared paths that are shared between
# all releases.
task
:setup
=>
:environment
do
queue!
%[mkdir -p "
#{
deploy_to
}
/
#{
shared_path
}
/log"]
queue!
%[chmod g+rx,u+rwx "
#{
deploy_to
}
/
#{
shared_path
}
/log"]
queue!
%[mkdir -p "
#{
deploy_to
}
/
#{
shared_path
}
/config"]
queue!
%[chmod g+rx,u+rwx "
#{
deploy_to
}
/
#{
shared_path
}
/config"]
queue!
%[touch "
#{
deploy_to
}
/
#{
shared_path
}
/config/database.yml"]
queue!
%[touch "
#{
deploy_to
}
/
#{
shared_path
}
/config/secrets.yml"]
queue
%[echo "-----> Be sure to edit '
#{
deploy_to
}
/
#{
shared_path
}
/config/database.yml' and 'secrets.yml'."]
queue
%[
repo_host=`echo $repo | sed -e 's/.*@//g' -e 's/:.*//g'` &&
repo_port=`echo $repo | grep -o ':[0-9]*' | sed -e 's/://g'` &&
if [ -z "${repo_port}" ]; then repo_port=22; fi &&
ssh-keyscan -p $repo_port -H $repo_host >> ~/.ssh/known_hosts
]
end
desc
"Deploys the current version to the server."
task
:deploy
=>
:environment
do
to
:before_hook
do
# Put things to run locally before ssh
end
deploy
do
deploy
do
# Put things that will set up an empty directory into a fully set-up
# instance of your project.
invoke
:'git:clone'
invoke
:'git:clone'
invoke
:'deploy:link_shared_paths'
execute
'bundle install --binstubs'
invoke
:'bundle:install'
execute
'rake daily:stats'
invoke
:'rails:db_migrate'
invoke
:'rails:assets_precompile'
invoke
:'deploy:cleanup'
to
:launch
do
queue
"mkdir -p
#{
deploy_to
}
/
#{
current_path
}
/tmp/"
queue
"touch
#{
deploy_to
}
/
#{
current_path
}
/tmp/restart.txt"
end
end
end
end
end
# For help in making your deploy script, see the Mina documentation:
#
# - http://nadarei.co/mina
# - http://nadarei.co/mina/tasks
# - http://nadarei.co/mina/settings
# - http://nadarei.co/mina/helpers
This diff is collapsed.
Click to expand it.
teste
deleted
100644 → 0
+
0
−
1
View file @
eceb04de
asdasd
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment