{"id":16902640,"url":"https://github.com/muan/deploying-with-now","last_synced_at":"2025-04-11T14:22:38.332Z","repository":{"id":66329428,"uuid":"93981861","full_name":"muan/deploying-with-now","owner":"muan","description":"A simple node server demo for deploying with https://zeit.co/now.","archived":false,"fork":false,"pushed_at":"2017-06-14T04:18:07.000Z","size":17,"stargazers_count":21,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T10:37:35.367Z","etag":null,"topics":["deployment","zeithq"],"latest_commit_sha":null,"homepage":"https://muan-testing.now.sh","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/muan.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-11T04:37:05.000Z","updated_at":"2024-04-28T02:04:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"2903b531-ecab-4574-a93c-9bd25ca4ff1f","html_url":"https://github.com/muan/deploying-with-now","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muan%2Fdeploying-with-now","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muan%2Fdeploying-with-now/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muan%2Fdeploying-with-now/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muan%2Fdeploying-with-now/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/muan","download_url":"https://codeload.github.com/muan/deploying-with-now/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248418263,"owners_count":21100191,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deployment","zeithq"],"created_at":"2024-10-13T18:07:21.141Z","updated_at":"2025-04-11T14:22:38.308Z","avatar_url":"https://github.com/muan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deploying with now\n\nThis documents how to deploy a simple node app to https://zeit.co/now, set up alias, and configure environment variables. Check out this test site at https://muan-testing.now.sh.\n\n## Steps\n\n1. Fork this repository or have your project ready with `npm start` script and [these configurations in your `package.json`](https://github.com/muan/deploying-with-now/blob/5074a2c84c60834b60e6ed3eb2e1fac919f65e3f/package.json#L13-L18).\n\n2. Get an account at https://zeit.co/login.\n\n3. Install now CLI with `npm install now -g`.\n\n4. Authenticate and deploy with `now --public`.\n\n5. Set an environment variable with `now secrets [name] [value]`.\n\n6. Alias deployment with `now ln`.\n\n7. :tada:.\n\n## Details\n\n### `now --public`\n\nDeploys your project and marks it as public. The `--public` flag prevents you from having to confirm that your project will be public.\n\n\"Public\" means that people will be able to view your source code and logs via `deployment_url/_logs`. For example, https://muan-testing.now.sh/_logs.\n\n### `now ln`\n\nAliases your deployment.\n\nEvery deployment gets a new random URL like `projectname-aicbqophhw.now.sh`. This command aliases your latest deployment with the name set in [`package.json`](https://github.com/muan/deploying-with-now/blob/5074a2c84c60834b60e6ed3eb2e1fac919f65e3f/package.json#L14).\n\n⚠️ Old deployments stay around til it's frozen or manually removed (which takes a while to die completely). This means if your app is actively pulling, listening, or actiing on things, it will not stopped immediately on demand – you might get into a situation where multiple versions of your script is running.\n\n### Environment variables\n\nExpose your secret environment variables to your app in [`package.json`](https://github.com/muan/deploying-with-now/blob/5074a2c84c60834b60e6ed3eb2e1fac919f65e3f/package.json#L15-L17). The `@` before the variable name tells now to look for variable of that name in the secrets.\n\n## Doc links\n\n[`aliases`](https://zeit.co/docs/features/aliases), [`env-and-secrets`](https://zeit.co/docs/features/env-and-secrets).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuan%2Fdeploying-with-now","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuan%2Fdeploying-with-now","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuan%2Fdeploying-with-now/lists"}