#Follow these three steps:
Remove storage file from public folder.
rm public/storage
If storage folder is there in your root directory, remove public file inside app folder.
rm storage/app/public
Run link command
cat .env.prod | xargs heroku config:set | |
# Output: | |
# API_PORT: 3000 | |
# API_KEY_1: ab-cd | |
# DB_PORT: 6379 | |
# REDISCLOUD_URL: xxx |
#Follow these three steps:
Remove storage file from public folder.
rm public/storage
If storage folder is there in your root directory, remove public file inside app folder.
rm storage/app/public
Run link command
# | |
# Cakebox-generated Nginx virtual host using generic template. | |
# | |
server { | |
listen 80; | |
server_name www.cake3.app; | |
rewrite ^(.*) http://cake3.app$1 permanent; | |
} |
OSRM route server is an extremely useful tool for getting the driving distance/time through multiple locations. The route server requires data that has to be downloaded and processsed before it can be used to serve routes from.
Processing OSRM data for large region like North America can be a real challenge due to memory and disk size requirements. It's also really time consuming. If you cut and try from scratch, you will repeatedly run into some constraints and fail after hours of running.
The following are summary notes from trying this with eventual success.
// COLOCAR DENTRO DA LISTA (LIST) DE CODIGOS SEPARADOS POR VIRGULA E ENTRE ASPAS | |
// EX: | |
// var list = ['CODE_1' , 'CODE_2' , 'CODE_3'] | |
var list = [ | |
]; | |
function sleep(ms) { |
DEBUG RELEASE ANDROID KEYSTORE
To generate keystores for signing Android apps at the command line, use:
$ keytool -genkey -v -keystore my-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
A debug keystore which is used to sign an Android app during development needs a specific alias and password combination as dictated by Google. To create a debug keystore, use:
While googling, I found these steps to easily create virtual hosts on MAMP:
Open your console in mac and edit your hosts file like this
sudo vim /etc/hosts
This opens a system file that contains the following line:
Olá desenvolvedor(a), ter um certificado SSL em um ambiente de desenvolvimento local, é um requisito para a realização de testes em algumas API's de intermediação de pagamento, como por exemplo o Pagseguro. A configuração do ambiente utilizando o Xampp e o Google Chrome era realativamente simples, com meia dúzia de comandos no Prompt você já estava com seu localhost respondendo à partir da requisição https. O problema é que à partir da versão 58 do Chrome os processos anteriores deixaram de funcionar, o que deixou muita gente de cabelo em pé. | |
Isso acontece porque, à partir da versão 58, o Chrome passa a não reconhecer certificados SSL assinados à partir do CN (Common Name), e reconhecer apenas certificados assinados à partir do SAN (Subject Alternative Name). | |
Depois de muita pesquisa, em foruns e sites especializados, encontrei uma forma bem simples de se instalar o certificado. Por enquanto testei apenas no Windows, porém em breve vou testar também no Linux! Então vamos lá. | |
O primeiro passo é baixar e ins |
react-native bundle --dev false --platform android --entry-file index.android.js --bundle-output ./android/app/build/intermediates/assets/debug/index.android.bundle --assets-dest ./android/app/build/intermediates/res/merged/debug