Steps to deploy Node.js to VPS using PM2 and Github Actions
This file contains hidden or 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
| <button class="py-4 px-1 relative border-2 border-transparent text-gray-800 rounded-full hover:text-gray-400 focus:outline-none focus:text-gray-500 transition duration-150 ease-in-out" aria-label="Cart"> | |
| <svg class="h-6 w-6" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewBox="0 0 24 24" stroke="currentColor"> | |
| <path d="M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z"></path> | |
| </svg> | |
| <span class="absolute inset-0 object-right-top -mr-6"> | |
| <div class="inline-flex items-center px-1.5 py-0.5 border-2 border-white rounded-full text-xs font-semibold leading-4 bg-red-500 text-white"> | |
| 6 | |
| </div> | |
| </span> | |
| </button> |
This file contains hidden or 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
| # Dev Local Conf for multiple subdomain websites | |
| # Here `appdev.com` is pointing to 127.0.0.1 | |
| #resolver 127.0.0.11 valid=5s; # for docker | |
| ssl_certificate /usr/local/etc/nginx/ssl/app.server.crt; | |
| ssl_certificate_key /usr/local/etc/nginx/ssl/app.server.key; | |
| upstream app_backend { server localhost:4000; } | |
| upstream app_website { server localhost:5001; } |
Nginx tests only the request’s header field Host to determine which server the request should be routed to.
If its value does not match any server name, or the request does not contain this header field at all,
then nginx will route the request to the default server, the first server block if no default is specified,
or determine the default alphabetical order.
TLS does not provide a mechanism for a client to tell a server the name of the server it is contacting. It may be desirable for clients to provide this information to facilitate secure connections to servers that host multiple 'virtual' servers at a single underlying network address.
- Имена полей в ответе задавать в
snake_case(prr_page,created_at,system_name,...) - Для времени использовать
ISO 8601(формат: YYYY-MM-DDTHH:MM:SSZ) - Отдавать данные (сам контент, поля сущностей, массивы сущностей), помещая их в
data
- GET: /api/users — получить список пользователей;
- GET: /api/users/123 — получить указанного пользователя;
- POST: /api/users — создать нового пользователя;
| Region Code | Region Name | Availability Zones |
|---|---|---|
| us-east-1* | N. Virginia | us-east-1a us-east-1b us-east-1c us-east-1d us-east-1e |
| us-east-2 | Ohio | us-east-2a us-east-2b us-east-2c |
| us-west-1* | N. California | us-west-1a us-west-1b us-west-1c |
| us-west-2 | Oregon | us-west-2a us-west-2b us-west-2c |
| eu-west-1 | Ireland | eu-west-1a eu-west-1b eu-west-1c |
| eu-central-1 | Frankfurt | eu-central-1a eu-central-1b |
This file contains hidden or 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
| Colocar o arquivo gerado dentro da pasta fixtures dentro da app | |
| app/fixtures/city.json | |
| $ python manage.py loaddata city | |
| Referências: | |
| https://docs.djangoproject.com/en/1.8/howto/initial-data/ |
People
:bowtie: |
😄 :smile: |
😆 :laughing: |
|---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
NewerOlder
