sudo yum install httpd
sudo systemctl start httpd.service
Apache Logs can be found at:
var/log/httpd/access_log
sudo yum install httpd
sudo systemctl start httpd.service
Apache Logs can be found at:
var/log/httpd/access_log
Uses the git rev-parse
command with a ref to HEAD to return the hash of the current commit.
git rev-parse HEAD
or
git rev-parse @
That is the way it is intended to be. To create the production database do:
RAILS_ENV=production rake db:create
Also, have a look at rake db:setup which will run anything you put in db/seeds.rb.
pry(main)> show-routes --grep admin
admin_posts GET /admin/posts(.:format) admin/posts#index
admin_posts POST /admin/posts(.:format) admin/posts#create
edit_admin_post GET /admin/posts/:id/edit(.:format) admin/posts#edit
...
Finding stuff with top
:
(Note that the 1 indicates the number of times to take a sample)
C02MW21AFD59:cc-portal michaelfernando$ top -l 1 | grep ruby
83441 ruby 0.0 00:59.84 2 0 8+ 264+ 113M+ 100M+ 0B 0B 127M+ 2554M+ 83440 1 sleeping 501 246375+ 24001+ 13+ 4+ 1964300+ 36+ 8340+ 0 457K+ 32K+ 334 0.0 michaelfernando
83439 ruby 0.0 00:59.96 2 0 8+ 268+ 115M+ 103M+ 0B 0B 131M+ 2558M+ 83438 1 sleeping 501 233596+ 24079+ 8+ 4+ 1967378+ 36+ 8641+ 0 462K+ 38K+ 295 0.0 michaelfernando
83437 ruby 0.0 00:59.09 2 0 8+ 285+ 128M+ 117M+ 0B 0B 165M+ 2586M+ 83436 1 sleeping 501 261641+ 25082+ 16+ 4+ 1963939+ 91+ 6608+ 2+ 582K+ 83K+ 402 0.0 michaelfernando
83435 ruby 0.0 00:58.69 2 0 8+ 281+ 127M+ 115M+ 0B 0B 161M+ 2582M+ 83434 1
# sudo ntpdate ntp.ubuntu.com
sudo apt-get install linux-image-extra-$(uname -r)
sudo apt-get install apparmor
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
nano /etc/apt/sources.list.d/docker.list
; | |
DROP TABLE IF EXISTS dates; | |
CREATE TABLE dates ( | |
id INTEGER PRIMARY KEY, -- year*10000+month*100+day | |
date DATE NOT NULL, | |
year INTEGER NOT NULL, | |
month INTEGER NOT NULL, -- 1 to 12 | |
day INTEGER NOT NULL, -- 1 to 31 | |
quarter INTEGER NOT NULL, -- 1 to 4 | |
week INTEGER NOT NULL, -- 1 to 52/53 |
##########################################################################################
;
# raw_corn table schema
CREATE TABLE `raw_corn` (
`domain_code` varchar(4) DEFAULT NULL,
`domain` varchar(30) DEFAULT NULL,
`area_code` int(11) DEFAULT NULL,
`area_name` varchar(30) DEFAULT NULL,