This file contains 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
runtime: python27 | |
api_version: 1 | |
threadsafe: true | |
handlers: | |
- url: / | |
static_files: dist/[project-name]/index.html | |
upload: dist/[project-name]/index.html | |
- url: / | |
static_dir: dist/[project-name] | |
skip_files: |
This file contains 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
XAMPP debió haberse instalado por defecto en la ruta: /opt/lampp/ | |
sudo /opt/lampp/lampp start //para iniciar el servicio | |
sudo /opt/lampp/lampp stop //para detenerlo | |
sudo /opt/lampp/lampp restart //para reiniciar | |
sudo /opt/lampp/manager-linux-x64.run //para acceder al panel de control |
This file contains 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
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
This file contains 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
Ruby 2.5.3 | |
Rails 5.2.4 | |
$ brew reinstall libyaml | |
$ rvm use 2.5.3 | |
$ vm install 2.5.3 --with-openssl-dir=$HOME/.rvm/opt/openssl | |
$ rvm reinstall 2.5.3 | |
$ rvm use 2.5.3@railstutorial_4_0 --create --default | |
$ gem update | |
$ vim ~/.gemrc |
This file contains 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
Rails.application.routes.draw do | |
root 'static_pages#home' | |
get 'ayuda', to: 'static_pages#help', as: "help" | |
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html | |
end |
This file contains 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
<% provide(:title, "Help") %> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title><%= yield(:title) %> | Ruby on Rails Tutorial Sample App</title> | |
</head> | |
<body> | |
<h1>Help</h1> | |
<p> | |
Get help on the Ruby on Rails Tutorial at the |
This file contains 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
$rails generate controller StaticPages home help | |
##### Shortcuts ##### | |
$ rails server -> $ rails s | |
$ rails console -> $ rails c | |
$ rails generate -> $ rails g | |
$ bundle install -> $ bundle | |
$ rake test -> $ rake | |
################### |
This file contains 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
$ cd ~/folder_projects | |
$ rails new name_project #create project On Rails | |
$ cd name_project | |
$ vim Gemfile #view conf | |
$ bundle install #Install requeriments | |
# Modeling demo microposts | |
# example |
This file contains 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
<!DOCTYPE html> | |
<html lang="es"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Estructura básica</title> | |
<!--CND de CSS--> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" | |
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous"> |
This file contains 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
<!DOCTYPE html> | |
<html lang="es"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Estructura básica</title> | |
<!--CND de CSS--> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous"> | |
</head> | |
<body> |