-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0a02d34
commit c31ba22
Showing
1 changed file
with
2 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,3 @@ | ||
# Go forth and build! 🚀 | ||
# Save ChatGPT chats automatically (deployment) | ||
|
||
By now, you have deployed a container, and in moments, you can visit your app | ||
live! | ||
|
||
> Be patient! In ~3 mins your app is live, at your [app url](https://container-qqm9ets.containers.anotherwebservice.com/). It even has a free SSL/TLS certificate 🔒 you're welcome! | ||
You probably want to add code to your app. Good news, your app is ready right now to start coding, which is simple: | ||
|
||
1. Edit your code | ||
2. Commit your code | ||
3. Push your code `git push origin main` | ||
|
||
Your app will be automatically re-deployed with the latest code at: https://container-qqm9ets.containers.anotherwebservice.com/ | ||
|
||
> You app is deployed already and is working software. Gone are the days of spending weeks coding and then *another* week going to production. No. Go to production *early* and respond to change. | ||
# How to code your app locally 💻 (on your laptop) | ||
|
||
> Step 0: You need to download your repo to your computer: | ||
``` | ||
git clone [email protected]:chrisjsimpson/container-qqm9ets.git | ||
``` | ||
|
||
> See an error? You might need to setup permissions [here's a guide how to setup repo clone permissions](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account) | ||
1. [Install docker](https://docs.docker.com/get-docker/) | ||
|
||
2. Start your container locally: `docker-compose up` | ||
3. Visit your app locally: http://127.0.0.1:5000/ | ||
|
||
## View your app locally | ||
|
||
Visit: http://127.0.0.1:5000/ | ||
|
||
### Rebuild container (locally) | ||
If you make changes to `Dockerfile`, then you need to rebuild your container image. To rebuild the container image: | ||
``` | ||
docker-compose build | ||
# or | ||
docker-compose up --build | ||
``` | ||
|
||
# Which framework did you choose? | ||
|
||
Need some help to get started? | ||
|
||
- [**Ruby** quickstart guide](https://github.com/KarmaComputing/rails-quickstart) | ||
|
||
|
||
## Questions | ||
|
||
- How was this built? [All code is here](https://github.com/KarmaComputing/container-hosting) | ||
Currently at https://container-qqm9ets.containers.anotherwebservice.com/ |