https://github.com/valiantlynx/svelte-altlokalt
norwegian companies informasjon website
https://github.com/valiantlynx/svelte-altlokalt
company nordic norway
Last synced: 8 months ago
JSON representation
norwegian companies informasjon website
- Host: GitHub
- URL: https://github.com/valiantlynx/svelte-altlokalt
- Owner: valiantlynx
- Created: 2024-02-19T00:04:17.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-06T03:39:22.000Z (over 1 year ago)
- Last Synced: 2025-01-11T00:03:31.064Z (9 months ago)
- Topics: company, nordic, norway
- Language: Svelte
- Homepage:
- Size: 4.96 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
### preequisite
ansible is only able to run on linux
an S3 bucket with the correct name(same as in terraform/provider.tf in s3.bucket )## Developing
start a development server:```bash
yarn dev# or start the server and open the app in a new browser tab
yarn dev -- --open
```## Building
To create a production version of your app:
```bash
yarn buildor if you have docker installed
docker-compose -f docker-compose.dev.yml up -d --build
```You can preview the production build with `yarn preview`.
or if you used docker go to http://localhost:3000> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.
# deploy-nodeapp-terraform-ansible
## Steps to deploy
### Configure AWS
```hcl
Replace this credentials in main.tfprovider "aws" {
region = "AWS_REGION"
access_key = "AWS_ACCESS_KEY"
secret_key = "AWS_SECRET_KEY"
}
```## Command to execute
### terraform
```hcl
terraform init
``````hcl
terraform validate
``````hcl
terraform plan
``````hcl
terraform apply --auto-approve
```### Destroy all resouces
```hcl
terraform destroy --auto-approve
```### ansible
```bash
ansible-playbook -i 13.60.38.190, -e "ansible_user=ubuntu ansible_ssh_private_key_file=modules/pk/terraform-key.pem" ../ansible/deploy-app.yml
ansible-playbook -i modules/ec2/dynamic_inventory.ini ../ansible/deploy-app.yml
```https://www.youtube.com/watch?v=alAZl5udvAI