Skip to content

sygessese/twitook

Repository files navigation

Twitook


  1. Run local development
    In shell tab, run the command: npm run watch:dev In a browser, open: localhost:8000

  2. 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

  3. 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published