# Deployment
First thing to know about deploying this platform is that it has 6 environments.
The first and main environment is Production. Each of the associations has 1. They both use the same code base.
The second one is Stage, which is where production ready things are tested. This environment should always be a mirror
of the production. This is not the place to develop or test features that are not to be implemented on production during
the ski season.
The third and final environment is Next. This is where we develop, try, R&D things that will not make it into the current
season. For example, the Salesforce integration was developed on Next while Stage stayed the same as Production during
the 2021-2022 season.
To deploy code to the server, You need to run the following:
sh build.sh
within the core_api directory. This will build the code and make it ready for a buddy deployment after you commit to the
stage or production branch.
If you want to develop on the Next platform or do some trial/error development, you can run the following:
sh build.sh -d
to build and zip the build and upload it manually to AWS Lambda for you to test your code. Thus, skipping the deployment process.
NOTE: On Windows you need to have the WSL installed. Windows does not understand shell and shell script commands on it's own.
← Writers