Set up nginx
on Mac OS
Install nginx
with Homebrew:
brew install nginx
Start nginx
as a brew service:
Set up nginx
on Mac OS
Install nginx
with Homebrew:
brew install nginx
Start nginx
as a brew service:
We are using the Github flow, which is mainly:
master
branch that is always production ready and in a deployable state 🛰️feature branch
master
for your feature / bug fix to be merged and go in production 🚀# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="/Users/nicolasrouanne/.oh-my-zsh" | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME | |
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes |
git commit --amend # edit last commit
git commit --amend --no-edit # edit last commit w/o changing commit message
When you make a mistake (e.g. a hard reset to a previous commit, losing important work), you can always undo your changes made with git, even when it seems irrevocaly lost
AWS Elastic Beanstalk is the Platform As A Service solution by AWS. It is thought as a replacement for Heroku wich is great 🙌 but can become very expensive 💰 when the project is growing or in need of real performance 🏎.
Google Cloud also has its Platform As A Service product, Google App Engine. However very promising and notably simpler than AWS Elastic Beanstalk, we have been experiencing serious issues while testing it:
VS Code launch.json
file serves as a debugging configuration file.
It must be stored in PROJET_ROOT/.vscode/launch.json
.
Though opinions vary, it is not recommended to commit such files in source control. It is specific to every developer, and commiting it would prevent each developer to configure it according to his needs.
{ | |
"included": [ | |
{ | |
"id": "1", | |
"type": "boat_model", | |
"attributes": { | |
"name": "Demacia", | |
"boat_type": "sailboat", | |
"loa": 16.63, | |
"beam": 1.23, |
# In spec_helper: | |
# RSpec.configure do |config| | |
# ... | |
# config.include(MockGeocoder) | |
# end | |
# | |
# In your tests: | |
# it 'mock geocoding' do | |
# # You may pass additional params to override defaults | |
# # (i.e. :coordinates => [10, 20]) |
Signing commits is a way to authenticate your commits, since anybody can pretend using your email when pushing to a repository (as long as one has access to it)
First you need to create a GPG
Key Pair. Follow Github guide explaining each step: Generating a new GPG Key
Do not forget to add the passphrase to your favorite password manager (1Password for instance 🔒👌)