- Docker Compose
- AWS credentials in ~/.aws or environment variables
To install SiestaCMS in your computer:
- Clone the repo with git clone https://github.com/nosolopau/siestacms.
- Change to siestacms directory with cd siestacms.
- Create an .env file manually or by running make envfile ENVFILE=env.example.
- Install the dependencies: make deps.
- Run it locally with: make server. A local server will be launched in your port 3000.
- Browse localhost:3000.
Edit serverless.yml. At least, change the service name under service to use your own.
If you want to use a custom domain, configure it in serverless.yml under the `custom` section. If you don't want to use it, just comment or remove the configuration for both custom.domain and custom.customDomain.
This configuration is a bit tricky so be ready to SUFFER. I didn't include Make commands for this purpose as I assume only a few people will need it.
To use your own domain, configure it under the sections custom.domain and custom.customDomain in the serverless.yml file, and run:
This will open a shell inside a Docker container
In the shell, run:
sls create_domain --stage=<STAGE> sls deploy --stage=<STAGE>
If you want to deploy your own distribution, you'll need an AWS account configured in your environment file or in your ~/.aws folder. Then, just run:
The Serverless install will run and you'll get the URL for your lambda function
See more instructions on how to use SiestaCMS under the section How to use it.