Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update localjsfile.md #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions concepts/Configuration/localjsfile.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# The `config/local.js` file
# El archivo `config/local.js`

The `config/local.js` file is useful for configuring a Sails app for your local environment (your laptop, for example). The settings in this file take precedence over all other config files except [.sailsrc](http://sailsjs.org/documentation/concepts/Configuration/usingsailsrcfiles.html). Since they're intended only for local use, they should not be put under version control (and are included in the default `.gitignore` file for that reason). Use `local.js` to store local database settings, change the port used when lifting an app on your computer, etc.
El archivo `config/localjs` es útil para configurar la aplicación de Sails en tu entorno local(tu laptop por ejemplo). Las configuraciones en este archivo preceden todas las configuraciones, a excepción de las presentes en [.sailsrc](http://sailsjs.org/documentation/concepts/Configuration/usingsailsrcfiles.html). Debido a que se pretende que sea usado en un entorno local, no debería ser agregado al control de versiones(debido a esta razón, el archivo `config/localjs` está agregado por defecto al `.gitignore`). Usa `local.js` para almacenar las configuraciones de la base de datos local, cambiar el puerto al iniciar la aplicación en tu computadora, etc.

While you’re developing your app, this config file should include any settings specifically for your development computer or server (db passwords, etc.) If you're using git, note that `config/local.js` is included in the `.gitignore` in new Sails apps by default, and so it won't be checked into your repository when you commit.
Mientras desarrollas tu aplicación, el archivo de configuración debería incluir cualquier opción específica para tu computadora de desarrollo o servidor(contraseñas de la base de datos, etc.) Si estás usando git, ten en cuenta que `config/local.js` está incluido en el `.gitignore` para nuevas aplicaciones de Sails por defecto, por lo tanto no van a ser agregadas a tu repositorio cuando hagas un commit.

When you’re ready to deploy your app in production, you can also use this file for configuration options on the server where it will be deployed. However, for server deployments, environment variables are usually preferable. You can also use command-line arguments and the `.sailsrc` file as alternatives to `config/local.js` for your local development configuration. [See the overview](http://sailsjs.org/documentation/concepts/Configuration) for general information about Sails configuration.
Cuando estés listo para desplegar tu aplicación en producción, también puedes usar este archivo para las opciones de configuración en el servidor que se desplegará la aplicación. Sin embargo, para el despliegue en servidores, las variables de entorno suelen ser preferidas. También puedes usar los argumentos en la linea de comandos y el archivo `.sailsrc` como alternativas a `config/local.js` para tus configuraciones de desarrollo local. [Mira el resumen](http://sailsjs.org/documentation/concepts/Configuration) para información general sobre la configuración de Sails.

> **Note:** This file is included in your .gitignore, so if you’re using git as a version control solution for your Sails app, keep in mind that this file won’t be committed to your repository!
> Good news is, that means you can specify configuration for your local machine in this file without inadvertently committing personal information (like database passwords) to the repo. Plus, this prevents other members of your team from commiting their local configuration changes on top of yours.
> **Nota:** Este archivo es incluido en tu .gitignore, por lo que si usas git como tu solución de control de versiones para su aplicación de Sails, ¡ten en cuenta que este archivo no va a ser agregado a tu repositorio coando realices un commit!
>La ventaja de esto es que no compartiras información personal de tu máquina de desarrollo(como contraseñas de la base de datos) en el repositorio. Además, esto previene que otros miembros de tu equipo sobreescriban tu configuración local con la de ellos.

<docmeta name="displayName" value="The local.js file">