-
Run local development
In shell tab, run the command: npm run watch:dev In a browser, open: localhost:8000 -
Run development in Docker
Edit docker-compose.yml web command to: "npm run watch:dev"
In shell tab, run the command: docker-compose build Once built, run the command: docker-compose up -d
In a browser, open: localhost:8000
IMPORTANT
Before pushing changes to github, edit docker-compose.yml back to: "npm start"
Failing to do so will result in environment variable errors -
Update production application on AWS
Navigate to folder with PEM key file
SSH into ec2 container with command: ssh -i "FILENAME.pem" CONTAINER-URL
Run the command (delete all untracked files): git clean
Run the command (updates to the latest github commit): git pull
Destroy outdated containers with the command: docker-compose down
Create containers with updated files with the command: docker-compose build
Then run the command: docker-compose up -d
generated from sygessese/react-skeleton
-
Notifications
You must be signed in to change notification settings - Fork 0
sygessese/twitook
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published